summaryrefslogtreecommitdiffstats
path: root/deploy/deploy-config.py
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/deploy-config.py')
-rw-r--r--deploy/deploy-config.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/deploy/deploy-config.py b/deploy/deploy-config.py
index 65d51b228..226e3d59e 100644
--- a/deploy/deploy-config.py
+++ b/deploy/deploy-config.py
@@ -101,13 +101,10 @@ def merge_fuel_plugin_version_list(list1, list2):
# When the plugin version in not there in list1 it will
# not be copied
for e_l1 in list1:
- plugin_version = e_l1.get('metadata',
- {'plugin_version', None}).get('plugin_version')
+ plugin_version = e_l1.get('metadata', {}).get('plugin_version')
plugin_version_found = False
for e_l2 in list2:
- if plugin_version == e_l2.get('metadata',
- {'plugin_version',
- None}).get('plugin_version'):
+ if plugin_version == e_l2.get('metadata', {}).get('plugin_version'):
final_list.append(dict(mergedicts(e_l1, e_l2)))
plugin_version_found = True
if not plugin_version_found: