Parcourir la source

Fixed a couple of other variables that were incorrect.

Kenny Woodson il y a 10 ans
Parent
commit
1bbb46d608
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      lib/aws_command.rb

+ 2 - 2
lib/aws_command.rb

@@ -76,8 +76,8 @@ 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']
+          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']
         elsif options[:type] && options[:env]
           oo_env_host_type_tag = AwsHelper.generate_env_host_type_tag_name(options[:env], options[:type])