lib/cloudstack-client/commands/iso.rb in cloudstack-cli-0.3.3 vs lib/cloudstack-client/commands/iso.rb in cloudstack-cli-0.3.4

- old
+ new

@@ -15,14 +15,18 @@ def list_isos(args = {}) filter = args[:filter] || 'featured' params = { 'command' => 'listIsos', - 'templateFilter' => filter + 'isoFilter' => filter } params['projectid'] = args[:project_id] if args[:project_id] params['zoneid'] = args[:zone_id] if args[:zone_id] + if args[:listall] + params['listall'] = true + params['isrecursive'] = true + end json = send_request(params) json['iso'] || [] end @@ -35,10 +39,10 @@ # listIsos in CloudStack 2.2 doesn't seem to work # when the name parameter is specified. When this is fixed, # the name parameter should be added to the request. params = { 'command' => 'listIsos', - 'templateFilter' => 'executable' + 'isoFilter' => 'executable' } json = send_request(params) isos = json['iso'] if !isos then \ No newline at end of file