summaryrefslogtreecommitdiff
path: root/lib/chef/http
diff options
context:
space:
mode:
authorNoah Kantrowitz <noah@coderanger.net>2018-05-31 10:07:38 -0700
committerNoah Kantrowitz <noah@coderanger.net>2018-05-31 10:07:38 -0700
commita481d49a173740f170c44e19c267d98a3e93a0bc (patch)
tree69d15beed08468c014be9d312277fddfbc6128ba /lib/chef/http
parente90e61c6adb76156cbeef474c9810ea258871cf8 (diff)
downloadchef-a481d49a173740f170c44e19c267d98a3e93a0bc.tar.gz
Feed the Rubocop.
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
Diffstat (limited to 'lib/chef/http')
-rw-r--r--lib/chef/http/authenticator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/http/authenticator.rb b/lib/chef/http/authenticator.rb
index a20653a055..8e050832f0 100644
--- a/lib/chef/http/authenticator.rb
+++ b/lib/chef/http/authenticator.rb
@@ -92,7 +92,7 @@ class Chef
# Pass in '' as the passphrase to avoid OpenSSL prompting on the TTY if
# given an encrypted key. This also helps if using a single file for
# both the public and private key with ssh-agent mode.
- @key = OpenSSL::PKey::RSA.new(@raw_key, '')
+ @key = OpenSSL::PKey::RSA.new(@raw_key, "")
rescue SystemCallError, IOError => e
Chef::Log.warn "Failed to read the private key #{key_file}: #{e.inspect}"
raise Chef::Exceptions::PrivateKeyMissing, "I cannot read #{key_file}, which you told me to use to sign requests!"