lib/cloudstack-cli/commands/network.rb in cloudstack-cli-0.8.3 vs lib/cloudstack-cli/commands/network.rb in cloudstack-cli-0.9.0

- old
+ new

@@ -32,21 +32,22 @@ end if networks.size < 1 puts "No networks found." else - table = [["Name", "Displaytext", "Account/Project", "Zone", "Domain", "State", "Type"]] + table = [%w(Name Displaytext Account/Project Zone Domain State Type Offering)] table[0] << "ID" if options[:showid] table[0] << "VLAN" if options[:showvlan] networks.each do |network| table << [ network["name"], network["displaytext"], network["account"] || network["project"], network["zonename"], network["domain"], network["state"], - network["type"] + network["type"], + network["networkofferingname"] ] table[-1] << network["id"] if options[:showid] table[-1] << network["vlan"] if options[:showvlan] end print_table table \ No newline at end of file