浏览代码

more trials to make things work

Matt Woodson 10 年之前
父节点
当前提交
6f4ccff895
共有 1 个文件被更改,包括 11 次插入2 次删除
  1. 11 2
      lib/aws_command.rb

+ 11 - 2
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}']"