summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-09-26 14:16:16 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-09-26 14:16:49 +0100
commit68c222588dd415d3e55385bea9563434f8243329 (patch)
treeebf77dfd990ecaf7c2265d9cd0c80f8d3b1ae7c1
parent0ac2f5d3b0519b61e8cadc93bf2a33520e9ba062 (diff)
downloadmorph-68c222588dd415d3e55385bea9563434f8243329.tar.gz
Fix users of Morphology.needs_artifact_metadata_cached
This is now a method, not an attribute. (And rightfully so!)
-rw-r--r--morphlib/buildcommand.py2
-rw-r--r--morphlib/plugins/list_artifacts_plugin.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py
index edd2f0c5..03aadce7 100644
--- a/morphlib/buildcommand.py
+++ b/morphlib/buildcommand.py
@@ -447,7 +447,7 @@ class BuildCommand(object):
to_fetch.append((self.rac.get(artifact),
self.lac.put(artifact)))
- if artifact.source.morphology.needs_artifact_metadata_cached:
+ if artifact.source.morphology.needs_artifact_metadata_cached():
if not self.lac.has_artifact_metadata(artifact, 'meta'):
to_fetch.append((
self.rac.get_artifact_metadata(artifact, 'meta'),
diff --git a/morphlib/plugins/list_artifacts_plugin.py b/morphlib/plugins/list_artifacts_plugin.py
index 8074206b..0b6c1bb7 100644
--- a/morphlib/plugins/list_artifacts_plugin.py
+++ b/morphlib/plugins/list_artifacts_plugin.py
@@ -112,7 +112,7 @@ class ListArtifactsPlugin(cliapp.Plugin):
artifact_files.add(artifact.basename())
- if artifact.source.morphology.needs_artifact_metadata_cached:
+ if artifact.source.morphology.needs_artifact_metadata_cached():
artifact_files.add('%s.meta' % artifact.basename())
# This is unfortunate hardwiring of behaviour; in future we