From 68c222588dd415d3e55385bea9563434f8243329 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Fri, 26 Sep 2014 14:16:16 +0100 Subject: Fix users of Morphology.needs_artifact_metadata_cached This is now a method, not an attribute. (And rightfully so!) --- morphlib/buildcommand.py | 2 +- 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 -- cgit v1.2.1