lib/ec2/host/cli.rb in ec2-host-0.5.4 vs lib/ec2/host/cli.rb in ec2-host-0.5.5
- old
+ new
@@ -101,10 +101,10 @@
opts
end
def run
- hosts = EC2::Host.new(condition)
+ hosts = EC2::Host.new(condition).sort_by {|host| host.hostname }
if options[:info]
hosts.each do |host|
$stdout.puts host.info
end
elsif options[:jsonl]