From e6c5f039ad7586bf98afecb2db9f6b8ec96db9ce Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Fri, 5 Aug 2016 11:25:52 +0000 Subject: hack fix tests Change-Id: I4b03c2d118c046ca9795a8462d4dd2cafcbba196 --- morphlib/plugins/fix_ref_plugin.py | 12 ++++++++---- 1 file 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'] -- cgit v1.2.1