lib/cloudstack-cli/commands/network.rb in cloudstack-cli-0.10.1 vs lib/cloudstack-cli/commands/network.rb in cloudstack-cli-0.10.2
- old
+ new
@@ -88,13 +88,13 @@
end
end
unless server = client.get_network(name, options[:project_id])
puts "No network found."
else
- server.each do |key, value|
- say "#{key}: ", :yellow
- say "#{value}"
+ table = server.map do |key, value|
+ [ set_color("#{key}:", :yellow), "#{value}" ]
end
+ print_table table
end
end
desc "restart NAME", "restart network"
option :cleanup, type: :boolean, default: true
\ No newline at end of file