diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2016-08-05 11:25:52 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2016-08-05 11:25:52 +0000 |
commit | e6c5f039ad7586bf98afecb2db9f6b8ec96db9ce (patch) | |
tree | 3c6d8cafb2e355b158f7243f11a15f35487361f1 | |
parent | e2ae92ba6352cc44acae9ff4f2cd57d104009388 (diff) | |
download | morph-e6c5f039ad7586bf98afecb2db9f6b8ec96db9ce.tar.gz |
hack fix tests
Change-Id: I4b03c2d118c046ca9795a8462d4dd2cafcbba196
-rw-r--r-- | morphlib/plugins/fix_ref_plugin.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/morphlib/plugins/fix_ref_plugin.py b/morphlib/plugins/fix_ref_plugin.py index a1dca166..3dba26ea 100644 --- a/morphlib/plugins/fix_ref_plugin.py +++ b/morphlib/plugins/fix_ref_plugin.py @@ -129,7 +129,8 @@ class FixRefPlugin(cliapp.Plugin): ''' kind = morphology['kind'] - defaults = morphlib.morphloader.MorphologyLoader._static_defaults[kind] + defaults = morphlib.morphloader.MorphologyLoader._static_defaults[ + kind] for key in defaults: if key in morphology and morphology[key] == defaults[key]: del morphology[key] @@ -137,13 +138,16 @@ class FixRefPlugin(cliapp.Plugin): if 'repo' in spec and spec['repo'] == spec['name']: del spec['repo'] if 'build-mode' in spec and spec['build-mode'] == \ - morphlib.morphloader.MorphologyLoader._static_defaults['chunk']['build-mode']: + morphlib.morphloader.MorphologyLoader._static_defaults[ + 'chunk']['build-mode']: del spec['build-mode'] if 'prefix' in spec and spec['prefix'] == \ - morphlib.morphloader.MorphologyLoader._static_defaults['chunk']['prefix']: + morphlib.morphloader.MorphologyLoader._static_defaults[ + 'chunk']['prefix']: del spec['prefix'] if 'submodules' in spec and spec['submodules'] == \ - morphlib.morphloader.MorphologyLoader._static_defaults['chunk']['submodules']: + morphlib.morphloader.MorphologyLoader._static_defaults[ + 'chunk']['submodules']: del spec['submodules'] |