Made spec hashes immutable once concrete -- improved
This commit is contained in:
parent
addcde4f35
commit
9f37e4c907
@ -762,7 +762,7 @@ def dag_hash(self, length=None):
|
|||||||
self.to_node_dict(), default_flow_style=True, width=sys.maxint)
|
self.to_node_dict(), default_flow_style=True, width=sys.maxint)
|
||||||
sha = hashlib.sha1(yaml_text)
|
sha = hashlib.sha1(yaml_text)
|
||||||
b32_hash = base64.b32encode(sha.digest()).lower()[:length]
|
b32_hash = base64.b32encode(sha.digest()).lower()[:length]
|
||||||
if self._concrete:
|
if self.concrete:
|
||||||
self.hash = b32_hash
|
self.hash = b32_hash
|
||||||
return b32_hash
|
return b32_hash
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user