summaryrefslogtreecommitdiff
path: root/lib/ansible/module_utils/netcfg.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/module_utils/netcfg.py')
-rw-r--r--lib/ansible/module_utils/netcfg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/module_utils/netcfg.py b/lib/ansible/module_utils/netcfg.py
index 87a4de4156..b4030522cb 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: