fix(xo-server/proxies#deployProxy): unregister created proxy on failure (#4812)

This commit is contained in:
badrAZ
2020-02-20 15:06:51 +01:00
committed by GitHub
parent 18685d061a
commit 44956dff85

View File

@@ -222,6 +222,7 @@ export default class Proxy {
name: this._generateDefaultProxyName(date),
vmUuid: vm.uuid,
})
$defer.onFailure.call(this, 'unregisterProxy', id)
await this.checkProxyHealth(id)
}