Merge pull request #1433 from bfirsh/remove-whitespace-from-json-representation-of-container-config

Remove whitespace from json hash
This commit is contained in:
Aanand Prasad 2015-05-20 16:55:02 +01:00
commit 4f40d0c168
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import hashlib
def json_hash(obj):
dump = json.dumps(obj, sort_keys=True)
dump = json.dumps(obj, sort_keys=True, separators=(',', ':'))
h = hashlib.sha256()
h.update(dump)
return h.hexdigest()