Minor fixes.

This commit is contained in:
Julien Fontanet
2014-01-29 17:08:43 +01:00
parent 7c4e7eb225
commit ea57b40d8c
2 changed files with 1 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ $_.each defs, (def, name) ->
# Gets the corresponding connection.
xapi = @getXAPI vm
xapi.call.apply xapi, ["VM.#{method}", vm.$ref].concat params
xapi.call.apply xapi, ["VM.#{method}", vm.ref].concat params
# Returns true.
true

View File

@@ -302,7 +302,6 @@ class $XO extends $EventEmitter
# Returns an object from its key or UUID.
getObject: (key) ->
# Gracefully handles UUIDs.
console.log @_UUIDsToKeys
if key of @_UUIDsToKeys
key = @_UUIDsToKeys[key]