From 457a6ca03e9b4c6efe303114a7a62191927c460e Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Thu, 8 Sep 2016 15:19:12 -0400 Subject: fixes issue with netcfg not working with match=line and path The difference() method now checks this condition and doesn't filter the path when match=line --- lib/ansible/module_utils/netcfg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.1