summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Kantrowitz <noah@coderanger.net>2018-06-24 19:33:11 -0700
committerNoah Kantrowitz <noah@coderanger.net>2018-06-24 19:33:11 -0700
commit3391abf03e6b5eeec80d212fc1b590c3e50f65fe (patch)
treee35b58d54f26b15e214b45b1b9204e6b43a61914
parentdfc35d12c8cf4363d50d7779f65959c5bf869c28 (diff)
downloadchef-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.rb2
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)