diff options
Diffstat (limited to 'lib/chef/knife/core/bootstrap_context.rb')
-rw-r--r-- | lib/chef/knife/core/bootstrap_context.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/core/bootstrap_context.rb b/lib/chef/knife/core/bootstrap_context.rb index 2bccc06d0e..ae79485051 100644 --- a/lib/chef/knife/core/bootstrap_context.rb +++ b/lib/chef/knife/core/bootstrap_context.rb @@ -47,7 +47,7 @@ class Chef # environment is set in the config file being used. However, # @config[:environment] is not polluted by @chef_config[:environment]. @config[:environment] || - (@config[:first_boot_attributes][:chef_environment] if @config[:first_boot_attributes]) || + (@config[:first_boot_attributes]['chef_environment'] if @config[:first_boot_attributes]) || @chef_config[:environment] || '_default' end |