lib/cloudstack-cli/commands/stack.rb in cloudstack-cli-1.3.0 vs lib/cloudstack-cli/commands/stack.rb in cloudstack-cli-1.3.1

- old
+ new

@@ -16,11 +16,11 @@ id: 0, name: "Create VM #{name}", status: 1 } else - options = { + options.merge!({ name: name, displayname: instance["decription"], zone: instance["zone"] || stack["zone"], template: instance["template"], iso: instance["iso"] , @@ -30,11 +30,11 @@ disk_offering: instance["disk_offering"], size: instance["disk_size"], group: instance["group"] || stack["group"], keypair: instance["keypair"] || stack["keypair"], ip_address: instance["ip_address"], - sync: true - } + }) + jobs << { id: client.deploy_virtual_machine( vm_options_to_params, {sync: true} )['jobid'],