lib/cloudstack-cli/helper.rb in cloudstack-cli-0.1.7 vs lib/cloudstack-cli/helper.rb in cloudstack-cli-0.2.0
- old
+ new
@@ -18,11 +18,15 @@
end
server = client.get_server(name, project_id)
unless server
say "Create server #{name}..."
server = client.create_server(
- name, offering, template,
- zone, networks, project_name
+ name: name,
+ offering: offering,
+ template: template,
+ zone: zone,
+ networks: networks,
+ project: project_name
)
puts
say "Server #{server["name"]} has been created.", :green
client.wait_for_server_state(server["id"], "Running")
say "Server #{server["name"]} is running.", :green
\ No newline at end of file