lib/cloudstack-cli/commands/volume.rb in cloudstack-cli-0.7.1 vs lib/cloudstack-cli/commands/volume.rb in cloudstack-cli-0.7.2
- old
+ new
@@ -10,17 +10,18 @@
options[:project_id] = find_project['id'] if options[:project]
volumes = client.list_volumes(options)
if volumes.size < 1
say "No volumes found."
else
- table = [%w(Name Type Size VM Storage Offeringname)]
+ table = [%w(Name Type Size VM Storage Offeringname Status)]
volumes.each do |volume|
table << [
volume['name'], volume['type'],
(volume['size'] / 1024**3).to_s + 'GB',
volume['vmname'],
volume['storage'],
- volume['diskofferingname']
+ volume['diskofferingname'],
+ volume['state']
]
end
print_table(table)
say "Total number of volumes: #{volumes.size}"
end
\ No newline at end of file