diff options
-rw-r--r-- | chef-config/lib/chef-config/mixin/credentials.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chef-config/lib/chef-config/mixin/credentials.rb b/chef-config/lib/chef-config/mixin/credentials.rb index 4c0192fff8..5a73a49add 100644 --- a/chef-config/lib/chef-config/mixin/credentials.rb +++ b/chef-config/lib/chef-config/mixin/credentials.rb @@ -28,7 +28,7 @@ module ChefConfig return unless File.file?(credentials_file) - context = File.read(context_file) if File.file?(context_file) + context = File.read(context_file).strip if File.file?(context_file) environment = ENV.fetch("CHEF_PROFILE", nil) |