diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-09-26 14:16:16 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-09-26 14:16:49 +0100 |
commit | 68c222588dd415d3e55385bea9563434f8243329 (patch) | |
tree | ebf77dfd990ecaf7c2265d9cd0c80f8d3b1ae7c1 | |
parent | 0ac2f5d3b0519b61e8cadc93bf2a33520e9ba062 (diff) | |
download | morph-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.py | 2 | ||||
-rw-r--r-- | morphlib/plugins/list_artifacts_plugin.py | 2 |
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 |