diff --git a/lib/ansible/module_utils/network/common/utils.py b/lib/ansible/module_utils/network/common/utils.py index 276d941cde6..1ac6a996af7 100644 --- a/lib/ansible/module_utils/network/common/utils.py +++ b/lib/ansible/module_utils/network/common/utils.py @@ -284,7 +284,11 @@ def dict_merge(base, other): if key in other: item = other.get(key) if item is not None: - combined[key] = list(set(chain(value, item))) + try: + combined[key] = list(set(chain(value, item))) + except TypeError: + value.extend([i for i in item if i not in value]) + combined[key] = value else: combined[key] = item else: