Skip to content
This repository has been archived by the owner on Jul 24, 2018. It is now read-only.

Commit

Permalink
Merge pull request #29 from fedora-infra/feature/cache-key-bugbear
Browse files Browse the repository at this point in the history
Fix bug in cache-key generation.
  • Loading branch information
ralphbean committed Jan 14, 2015
2 parents 9ef6884 + 7eefcea commit 1466546
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fmn/lib/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,9 @@ def __repr__(self):

@property
def cache_key(self):
return hashlib.sha256(self.code_path + self._arguments).hexdigest()
return hashlib.sha256(
self.code_path + str(self.negated) + self._arguments
).hexdigest()

@hybrid_property
def arguments(self):
Expand Down

0 comments on commit 1466546

Please sign in to comment.