diff --git a/package.json b/package.json index 42d3df699..313a22896 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/src/api/vm.coffee b/src/api/vm.coffee index 71baf6da1..6fbf00d4e 100644 --- a/src/api/vm.coffee +++ b/src/api/vm.coffee @@ -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.