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

- old
+ new

@@ -1,13 +1,14 @@ class StoragePool < CloudstackCli::Base - desc 'list', 'list storage_pool' + desc 'list', 'list storage_pools' option :zone, desc: "zone name for the storage pool" option :name, desc: "name of the storage pool" option :keyword, desc: "list by keyword" - option :state, desc: "filter by state (Up, Maintenance)" + option :state, desc: "filter by state (Up, Maintenance)" def list + resolve_zone storage_pools = client.list_storage_pools(options) if storage_pools.size < 1 say "No storage pools found." else storage_pools = filter_by(storage_pools, "state", options[:state]) if options[:state] @@ -33,6 +34,6 @@ print_table table say "Total number of storage_pools: #{storage_pools.size}" end end -end \ No newline at end of file +end