Minor fixes.
This commit is contained in:
parent
92307013a7
commit
6866267cf5
@ -28,7 +28,6 @@
|
||||
"sync": "~0.2.2",
|
||||
"then-redis": "~0.3.9",
|
||||
"underscore": "~1.5.2",
|
||||
"validator": "~2.0.0",
|
||||
"ws": "~0.4.31",
|
||||
"xml2js": "~0.4.1",
|
||||
"xmlrpc": "~1.1.1"
|
||||
|
@ -153,6 +153,7 @@ exports.create = ->
|
||||
try xapi.call 'VM.remove_from_other_config', ref, 'disks'
|
||||
xapi.call 'VM.add_to_other_config', ref, 'disks', VDIs
|
||||
|
||||
try xapi.call 'VM.remove_from_other_config', ref, 'install-method'
|
||||
switch installation.method
|
||||
when 'cdrom'
|
||||
xapi.call(
|
||||
@ -189,7 +190,7 @@ exports.create = ->
|
||||
# Finds the VBD associated to the newly created VM which is a
|
||||
# CD.
|
||||
VBDref = null
|
||||
$each VM.VBDs, (ref, _, _, done) ->
|
||||
$each VM.VBDs, (ref, _1, _2, done) ->
|
||||
VBD = xapi.call 'VM.get_record', ref
|
||||
# TODO: Checks it has been correctly retrieved.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user