diff options
author | Thomas Wiest <twiest@redhat.com> | 2014-10-23 16:13:54 -0400 |
---|---|---|
committer | Thomas Wiest <twiest@redhat.com> | 2014-10-23 16:13:54 -0400 |
commit | 6878f8690843e3f4b4c68f464bb39dd682bf51f4 (patch) | |
tree | 44ba1eb9aef8cb65b3c47dec2bf4c41d70e25c76 /lib/aws_helper.rb | |
parent | cde5cba28b7b0e9386f1c549ecf9141bbcadc64e (diff) | |
download | openshift-6878f8690843e3f4b4c68f464bb39dd682bf51f4.tar.gz openshift-6878f8690843e3f4b4c68f464bb39dd682bf51f4.tar.bz2 openshift-6878f8690843e3f4b4c68f464bb39dd682bf51f4.tar.xz openshift-6878f8690843e3f4b4c68f464bb39dd682bf51f4.zip |
made aws list display more information, and be able to only show a single environment
Diffstat (limited to 'lib/aws_helper.rb')
-rw-r--r-- | lib/aws_helper.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/aws_helper.rb b/lib/aws_helper.rb index 6d213107b..053f5267e 100644 --- a/lib/aws_helper.rb +++ b/lib/aws_helper.rb @@ -21,12 +21,14 @@ module OpenShift retval << OpenStruct.new({ :name => info['ec2_tag_Name'], :env => info['ec2_tag_environment'] || 'UNSET', - :external_ip => info['ec2_ip_address'], - :public_dns => info['ec2_public_dns_name'] + :public_ip => info['ec2_ip_address'], + :public_dns => info['ec2_public_dns_name'], + :state => info['ec2_state'], + :created_by => info['ec2_tag_created-by'] }) end - retval.sort_by! { |h| [h.env, h.name] } + retval.sort_by! { |h| [h.env, h.state, h.name] } return retval end |