summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Sprygada <privateip@users.noreply.github.com>2016-09-08 15:48:40 -0400
committerGitHub <noreply@github.com>2016-09-08 15:48:40 -0400
commit686d79a515970adaa7adbf2866556c2d99c5e4c8 (patch)
tree694c2ee6da392e030332f00c26fccf69cf6dde1e
parent1874d9e3eb353bd7aa6ba3bd7287543deb3f488c (diff)
parent457a6ca03e9b4c6efe303114a7a62191927c460e (diff)
downloadansible-686d79a515970adaa7adbf2866556c2d99c5e4c8.tar.gz
Merge pull request #17467 from privateip/netcfg
fixes issue with netcfg not working with match=line and path
-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: