diff options
author | Noah Kantrowitz <noah@coderanger.net> | 2018-05-31 08:42:01 -0700 |
---|---|---|
committer | Noah Kantrowitz <noah@coderanger.net> | 2018-05-31 11:49:46 -0700 |
commit | b97ec68cf9b5103ff4347b30b101565e17b28b61 (patch) | |
tree | 3ba6611238d4498a198625a498145bac7167ee8b /lib/mixlib | |
parent | 8f04ee8177270aa5a8288ebeeceb7b3b64c512f7 (diff) | |
download | mixlib-authentication-b97ec68cf9b5103ff4347b30b101565e17b28b61.tar.gz |
Silence the warning for the default positional args case.
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
Diffstat (limited to 'lib/mixlib')
-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 |