lib/cloudstack_client/commands/capacity.rb in cloudstack_client-0.2.12 vs lib/cloudstack_client/commands/capacity.rb in cloudstack_client-0.2.13

- old
+ new

@@ -7,14 +7,14 @@ def list_capacity(args = {}) params = { 'command' => 'listCapacity', } - - if options[:zone] - zone = get_zone(options[:zone]) + + if args[:zone] + zone = get_zone(args[:zone]) unless zone - puts "Error: Zone #{options[:zone]} not found" + puts "Error: Zone #{args[:zone]} not found" exit 1 end params['zoneid'] = zone['id'] end \ No newline at end of file