diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-04-17 15:26:02 +0100 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-04-18 18:29:25 +0100 |
commit | 214c3f223c889199ae783e1cab555c09fcd64b4d (patch) | |
tree | 106857729672748c26b38d8be4641013c1acd66d /morphlib/artifactresolver.py | |
parent | 469dde8a618c918b345745e885e0e7da5122e972 (diff) | |
download | morph-214c3f223c889199ae783e1cab555c09fcd64b4d.tar.gz |
Have a default 'chunks' field in a chunk morphology
Diffstat (limited to 'morphlib/artifactresolver.py')
-rw-r--r-- | morphlib/artifactresolver.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/artifactresolver.py b/morphlib/artifactresolver.py index 25836b41..a458f52a 100644 --- a/morphlib/artifactresolver.py +++ b/morphlib/artifactresolver.py @@ -243,7 +243,7 @@ class ArtifactResolver(object): return artifacts def _chunk_artifact_names(self, source): - if 'chunks' in source.morphology: + if len(source.morphology['chunks']) > 0: return sorted(source.morphology['chunks'].keys()) else: return [source.morphology['name']] |