Skip to content

Commit

Permalink
hashlib needs bytes in py3
Browse files Browse the repository at this point in the history
  • Loading branch information
s0undt3ch committed Mar 28, 2017
1 parent 8560d8a commit b7867e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/states/boto_apigateway.py
Expand Up @@ -436,7 +436,7 @@ def _gen_md5_filehash(fname, *args):
_hash.update(chunk)

for extra_arg in args:
_hash.update(str(extra_arg))
_hash.update(six.b(str(extra_arg)))
return _hash.hexdigest()


Expand Down

0 comments on commit b7867e8

Please sign in to comment.