lib/cloudstack_client/commands/capacity.rb in cloudstack_client-0.2.10 vs lib/cloudstack_client/commands/capacity.rb in cloudstack_client-0.2.11
- old
+ new
@@ -7,9 +7,11 @@
def list_capacity(args = {})
params = {
'command' => 'listCapacity',
}
+ params['zoneid'] = args[:zone_id] if args[:zone_id]
+ params['type'] = args[:type] if args[:type]
json = send_request(params)
json['capacity'] || []
end
\ No newline at end of file