mirror of https://github.com/docker/compose.git
Merge pull request #1433 from bfirsh/remove-whitespace-from-json-representation-of-container-config
Remove whitespace from json hash
This commit is contained in:
commit
4f40d0c168
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue