diff --git a/lib/ansible/module_utils/netcfg.py b/lib/ansible/module_utils/netcfg.py index 87a4de41565..b4030522cba 100644 --- a/lib/ansible/module_utils/netcfg.py +++ b/lib/ansible/module_utils/netcfg.py @@ -306,7 +306,7 @@ class NetworkConfig(object): def difference(self, other, path=None, match='line', replace='line'): try: - if path: + if path and match != 'line': try: other = other.get_section_objects(path) except ValueError: