summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Woodson <mwoodson@redhat.com>2015-02-15 21:47:17 -0500
committerMatt Woodson <mwoodson@redhat.com>2015-02-15 21:47:17 -0500
commit6f4ccff8954b57156a4df2984c953debfeef7c2d (patch)
treee7c0e4cad3d9ee24ff36b7f3223bb2e9cf58c2ea
parente45695622f867734cbfd64797cf6b830a2fff604 (diff)
downloadopenshift-6f4ccff8954b57156a4df2984c953debfeef7c2d.tar.gz
openshift-6f4ccff8954b57156a4df2984c953debfeef7c2d.tar.bz2
openshift-6f4ccff8954b57156a4df2984c953debfeef7c2d.tar.xz
openshift-6f4ccff8954b57156a4df2984c953debfeef7c2d.zip
more trials to make things work
-rw-r--r--lib/aws_command.rb13
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/aws_command.rb b/lib/aws_command.rb
index 7c6872c64..109542007 100644
--- a/lib/aws_command.rb
+++ b/lib/aws_command.rb
@@ -76,9 +76,18 @@ module OpenShift
host_type = nil
if options[:name]
details = AwsHelper.get_host_details(options[:name])
+#- ah.extra_vars['oo_host_group_exp'] = options[:name]
+#- ah.extra_vars['oo_env'] = details['env']
+#- host_type = details['host-type']
+#+ ah.extra_vars['oo_host_group_exp'] = details['ec2_public_dns_name']
+#+ ah.extra_vars['oo_env'] = details['ec2_tag_environment']
+#+ host_type = details['ec2_tag_host-type']
+
+# ah.extra_vars['oo_host_group_exp'] = details['ec2_public_dns_name']
ah.extra_vars['oo_host_group_exp'] = options[:name]
- ah.extra_vars['oo_env'] = details['env']
- host_type = details['host-type']
+# ah.extra_vars['oo_env'] = details['env']
+ ah.extra_vars['oo_env'] = details['ec2_tag_environment']
+ host_type = details['ec2_tag_host-type']
elsif options[:type] && options[:env]
oo_env_host_type_tag = AwsHelper.generate_env_host_type_tag_name(options[:env], options[:type])
ah.extra_vars['oo_host_group_exp'] = "groups['#{oo_env_host_type_tag}']"