diff options
author | Noah Kantrowitz <noah@coderanger.net> | 2018-06-24 19:33:11 -0700 |
---|---|---|
committer | Noah Kantrowitz <noah@coderanger.net> | 2018-06-24 19:33:11 -0700 |
commit | 3391abf03e6b5eeec80d212fc1b590c3e50f65fe (patch) | |
tree | e35b58d54f26b15e214b45b1b9204e6b43a61914 | |
parent | dfc35d12c8cf4363d50d7779f65959c5bf869c28 (diff) | |
download | chef-3391abf03e6b5eeec80d212fc1b590c3e50f65fe.tar.gz |
Remove any whitespace from the context name.
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
-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) |