mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-07-21 22:39:57 +01:00
Fixing merge_lists to work for list_or_* types
This commit is contained in:
wlauto
@@ -330,6 +330,10 @@ def _merge_two_lists(base, other, duplicates='all', dict_type=dict): # pylint:
|
||||
will never be removed.
|
||||
|
||||
"""
|
||||
if not isiterable(base):
|
||||
base = [base]
|
||||
if not isiterable(other):
|
||||
other = [other]
|
||||
if duplicates == 'all':
|
||||
merged_list = []
|
||||
for v in normalize(base, dict_type) + normalize(other, dict_type):
|
||||
|
Reference in New Issue
Block a user