lib/cloudstack-cli/commands/disk_offer.rb in cloudstack-cli-0.15.1 vs lib/cloudstack-cli/commands/disk_offer.rb in cloudstack-cli-1.0.0.rc1

- old
+ new

@@ -1,11 +1,12 @@ class DiskOffer < CloudstackCli::Base desc 'list', 'list disk offerings' - option :domain + option :domain, desc: "the domain of the disk offering" def list - offerings = client.list_disk_offerings(options[:domain]) + resolve_domain + offerings = client.list_disk_offerings(options) if offerings.size < 1 puts "No offerings found." else table = [["Name", "Displaytext", "Domain", "ID"]] offerings.each do |offering| @@ -18,6 +19,6 @@ end print_table table say "Total number of offerings: #{offerings.size}" end end -end \ No newline at end of file +end