diff options
author | Thom May <thom@may.lt> | 2018-06-01 10:18:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-01 10:18:32 +0100 |
commit | ad6fccc0d8c9e967d06fa707d8f8b6055bed5d3f (patch) | |
tree | e12d16151a48696a8a202fa474852c88918ef407 /lib | |
parent | 1d3a5258067ac429beec0a055ebd82c96b2165d3 (diff) | |
parent | b97ec68cf9b5103ff4347b30b101565e17b28b61 (diff) | |
download | mixlib-authentication-ad6fccc0d8c9e967d06fa707d8f8b6055bed5d3f.tar.gz |
Merge pull request #39 from coderanger/ssh-agent
Silence the warning for the default positional args case
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mixlib/authentication/signedheaderauth.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mixlib/authentication/signedheaderauth.rb b/lib/mixlib/authentication/signedheaderauth.rb index 6ac41a9..7df3555 100644 --- a/lib/mixlib/authentication/signedheaderauth.rb +++ b/lib/mixlib/authentication/signedheaderauth.rb @@ -109,7 +109,7 @@ module Mixlib opts[:sign_version] ||= sign_version else # Was called like sign(key, 'foo', '1.3', other: 'bar') - Mixlib::Authentication.logger.warn("Using deprecated positional arguments for sign(), please update to keyword arguments (from #{caller[1][/^(.*:\d+):in /, 1]})") + Mixlib::Authentication.logger.warn("Using deprecated positional arguments for sign(), please update to keyword arguments (from #{caller[1][/^(.*:\d+):in /, 1]})") unless sign_algorithm == algorithm opts[:sign_algorithm] ||= sign_algorithm opts[:sign_version] ||= sign_version end |