diff --git a/lib/ansible/module_utils/network/common/utils.py b/lib/ansible/module_utils/network/common/utils.py index 4cebe64263..b1dde9685d 100644 --- a/lib/ansible/module_utils/network/common/utils.py +++ b/lib/ansible/module_utils/network/common/utils.py @@ -301,7 +301,10 @@ def dict_merge(base, other): if key in other: item = other.get(key) if item is not None: - combined[key] = dict_merge(value, other[key]) + if isinstance(other[key], dict): + combined[key] = dict_merge(value, other[key]) + else: + combined[key] = other[key] else: combined[key] = item else: