fix(xo-server/_createProxyVm): {this → _app}.getObject

Fixes zammad#20646

Introduced by 70b0983
This commit is contained in:
Julien Fontanet 2024-01-03 10:50:42 +01:00
parent b1e879ca2f
commit f218874c4b
2 changed files with 5 additions and 1 deletions

View File

@ -11,6 +11,8 @@
> Users must be able to say: “I had this issue, happy to know it's fixed”
- [Proxies] Fix `this.getObject` is not a function during deployment
### Packages to release
> When modifying a package, add it here with its release type.
@ -27,4 +29,6 @@
<!--packages-start-->
- xo-server patch
<!--packages-end-->

View File

@ -277,7 +277,7 @@ export default class Proxy {
namespace,
version: xva.version,
}),
srId && this.getObject(srId, 'SR')._xapiRef
srId && app.getObject(srId, 'SR')._xapiRef
)
$defer.onFailure(() => xapi.VM_destroy(vm.$ref))