Minor change.

This commit is contained in:
Julien Fontanet 2014-02-05 15:25:11 +01:00
parent e4bc31357f
commit 3c6a3674a5

View File

@ -243,15 +243,13 @@ exports.delete = ->
xapi.call 'VM.destroy', VM.ref
exports.migrate = ->
{id, host} = @getParams {
{id, host_id} = @getParams {
# Identifier of the VM to migrate.
id: { type: 'string' }
# Identifier of the host to migrate to.
host: { type: 'string' }
host_id: { type: 'string' }
}
# Current user must be an administrator.
@ -259,7 +257,7 @@ exports.migrate = ->
try
VM = @getObject id
host = @getObject host
host = @getObject host_id
catch
@throw 'NO_SUCH_OBJECT'