lib/cloudstack-cli/commands/capacity.rb in cloudstack-cli-0.3.1 vs lib/cloudstack-cli/commands/capacity.rb in cloudstack-cli-0.3.2

- old
+ new

@@ -1,7 +1,7 @@ class Capacity < CloudstackCli::Base - TYPES = { + CAPACITY_TYPES = { 0 => "Memory", 1 => "CPU", 2 => "Storage", 3 => "Storage Allocated", 4 => "Public IP's", @@ -19,10 +19,10 @@ table = [] header = ["Zone", "Type", "Capacity Used", "Capacity Total", "Used"] capacities.each do |c| table << [ c['zonename'], - TYPES[c['type']], + CAPACITY_TYPES[c['type']], c['capacityused'], c['capacitytotal'], "#{c['percentused']}%" ] end \ No newline at end of file