lib/cloudstack-cli/commands/network.rb in cloudstack-cli-0.3.5 vs lib/cloudstack-cli/commands/network.rb in cloudstack-cli-0.3.6
- old
+ new
@@ -27,10 +27,10 @@
option :isdefault, type: :boolean
def list
project = find_project if options[:project]
networks = []
if project
- networks = client.list_networks(project['id'])
+ networks = client.list_networks(project_id: project['id'])
elsif options[:account]
networks = client.list_networks(account: options[:account])
else
networks = client.list_networks(isdefault: options[:isdefault])
networks += client.list_networks(project_id: -1, isdefault: options[:isdefault])
\ No newline at end of file