diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2014-09-11 16:12:36 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2014-09-11 16:12:36 +0100 |
commit | 18608330df426ca8213be28cc1f221b275f3302b (patch) | |
tree | 97160f9c93560350d78a535cea3952aaf40a7067 /morphlib/plugins | |
parent | 7eb8cc2d54f435f6a5d52c089282fc46380c043a (diff) | |
download | morph-18608330df426ca8213be28cc1f221b275f3302b.tar.gz |
Fix `morph branch-from-image` to work for deployed imagesbaserock/richardmaw/bugfix/branch-from-deployed-image
It broke when we added /baserock/deployment.meta.
We didn't notice this because our test suite was looking at the artifact
produced by morph build, and listed on the terminal.
Diffstat (limited to 'morphlib/plugins')
-rw-r--r-- | morphlib/plugins/branch_and_merge_plugin.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/morphlib/plugins/branch_and_merge_plugin.py b/morphlib/plugins/branch_and_merge_plugin.py index a258cd70..d816fb90 100644 --- a/morphlib/plugins/branch_and_merge_plugin.py +++ b/morphlib/plugins/branch_and_merge_plugin.py @@ -636,7 +636,8 @@ class BranchAndMergePlugin(cliapp.Plugin): system_metadatum = systems[0] metadata_cache_id_lookup = dict((md['cache-key'], md) - for md in metadata) + for md in metadata + if 'cache-key' in md) return system_metadatum, metadata_cache_id_lookup |