Add missing await for async unregisterXenServer
This commit is contained in:
parent
2b768d2fb5
commit
92f1c080c4
@ -25,6 +25,8 @@ set = $coroutine (params) ->
|
||||
|
||||
return true
|
||||
|
||||
set.description = 'changes the properties of an host'
|
||||
|
||||
set.params =
|
||||
id: type: 'string'
|
||||
name_label:
|
||||
@ -53,6 +55,8 @@ restart = $coroutine ({host}) ->
|
||||
|
||||
return true
|
||||
|
||||
restart.description = 'restart the host'
|
||||
|
||||
restart.params = {
|
||||
id: { type: 'string' }
|
||||
}
|
||||
@ -72,6 +76,8 @@ restartAgent = $coroutine ({host}) ->
|
||||
|
||||
return true
|
||||
|
||||
restartAgent.description = 'restart the Xen agent on the host'
|
||||
|
||||
restartAgent.params = {
|
||||
id: { type: 'string' }
|
||||
}
|
||||
@ -92,6 +98,8 @@ start = $coroutine ({host}) ->
|
||||
|
||||
return true
|
||||
|
||||
start.description = 'start the host'
|
||||
|
||||
start.params = {
|
||||
id: { type: 'string' }
|
||||
}
|
||||
@ -112,6 +120,8 @@ stop = $coroutine ({host}) ->
|
||||
|
||||
return true
|
||||
|
||||
stop.description = 'stop the host'
|
||||
|
||||
stop.params = {
|
||||
id: { type: 'string' }
|
||||
}
|
||||
@ -131,6 +141,8 @@ detach = $coroutine ({host}) ->
|
||||
|
||||
return true
|
||||
|
||||
detach.description = 'eject the host of a pool'
|
||||
|
||||
detach.params = {
|
||||
id: { type: 'string' }
|
||||
}
|
||||
@ -150,6 +162,8 @@ enable = $coroutine ({host}) ->
|
||||
|
||||
return true
|
||||
|
||||
enable.description = 'enable to create VM on the host'
|
||||
|
||||
enable.params = {
|
||||
id: { type: 'string' }
|
||||
}
|
||||
@ -169,6 +183,8 @@ disable = $coroutine ({host}) ->
|
||||
|
||||
return true
|
||||
|
||||
disable.description = 'disable to create VM on the hsot'
|
||||
|
||||
disable.params = {
|
||||
id: { type: 'string' }
|
||||
}
|
||||
@ -233,11 +249,15 @@ listMissingPatches.resolve = {
|
||||
|
||||
exports.listMissingPatches = listMissingPatches
|
||||
|
||||
listMissingPatches.description = 'return an array of missing new patches in the host'
|
||||
|
||||
#---------------------------------------------------------------------
|
||||
|
||||
installPatch = ({host, patch: patchUuid}) ->
|
||||
return @getXAPI(host).installPoolPatchOnHost(patchUuid, host.id)
|
||||
|
||||
installPatch.description = 'install a patch on an host'
|
||||
|
||||
installPatch.params = {
|
||||
host: { type: 'string' }
|
||||
patch: { type: 'string' }
|
||||
@ -332,6 +352,8 @@ stats = $coroutine ({host}) ->
|
||||
load: load
|
||||
}
|
||||
|
||||
stats.description = 'returns statistic of the host'
|
||||
|
||||
stats.params = {
|
||||
host: { type: 'string' }
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ add.params = {
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
export async function remove ({id}) {
|
||||
this.unregisterXenServer(id)
|
||||
await this.unregisterXenServer(id)
|
||||
}
|
||||
|
||||
remove.description = 'unregister a Xen server'
|
||||
|
Loading…
Reference in New Issue
Block a user