Minor change.
This commit is contained in:
parent
e4bc31357f
commit
3c6a3674a5
@ -243,15 +243,13 @@ exports.delete = ->
|
|||||||
|
|
||||||
xapi.call 'VM.destroy', VM.ref
|
xapi.call 'VM.destroy', VM.ref
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
exports.migrate = ->
|
exports.migrate = ->
|
||||||
{id, host} = @getParams {
|
{id, host_id} = @getParams {
|
||||||
# Identifier of the VM to migrate.
|
# Identifier of the VM to migrate.
|
||||||
id: { type: 'string' }
|
id: { type: 'string' }
|
||||||
|
|
||||||
# Identifier of the host to migrate to.
|
# Identifier of the host to migrate to.
|
||||||
host: { type: 'string' }
|
host_id: { type: 'string' }
|
||||||
}
|
}
|
||||||
|
|
||||||
# Current user must be an administrator.
|
# Current user must be an administrator.
|
||||||
@ -259,7 +257,7 @@ exports.migrate = ->
|
|||||||
|
|
||||||
try
|
try
|
||||||
VM = @getObject id
|
VM = @getObject id
|
||||||
host = @getObject host
|
host = @getObject host_id
|
||||||
catch
|
catch
|
||||||
@throw 'NO_SUCH_OBJECT'
|
@throw 'NO_SUCH_OBJECT'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user