summaryrefslogtreecommitdiff
path: root/lib/mixlib
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2017-06-20 12:10:38 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2017-06-20 12:10:38 -0700
commit70d29941ccc937fffdc5de408c70c1fbe2a3c321 (patch)
treea041155252cbbb3d4e19cf7c51986e75383bb851 /lib/mixlib
parent4e052e597207e50e3ad95340db0ef19bcba88632 (diff)
downloadmixlib-authentication-70d29941ccc937fffdc5de408c70c1fbe2a3c321.tar.gz
fix chefstyle offenses
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/mixlib')
-rw-r--r--lib/mixlib/authentication/signedheaderauth.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/mixlib/authentication/signedheaderauth.rb b/lib/mixlib/authentication/signedheaderauth.rb
index 2d49ad1..e870135 100644
--- a/lib/mixlib/authentication/signedheaderauth.rb
+++ b/lib/mixlib/authentication/signedheaderauth.rb
@@ -177,10 +177,10 @@ module Mixlib
# TODO: tim 2009-12-28: It'd be nice to just remove this special case,
# always sign the entire request body, using the expanded multipart
# body in the case of a file being include.
- @hashed_body ||= if self.file && self.file.respond_to?(:read)
- digester.hash_file(self.file, digest)
+ @hashed_body ||= if file && file.respond_to?(:read)
+ digester.hash_file(file, digest)
else
- digester.hash_string(self.body, digest)
+ digester.hash_string(body, digest)
end
end