diff options
author | Peter Sprygada <psprygada@ansible.com> | 2016-09-08 15:19:12 -0400 |
---|---|---|
committer | Peter Sprygada <psprygada@ansible.com> | 2016-09-08 15:19:12 -0400 |
commit | 457a6ca03e9b4c6efe303114a7a62191927c460e (patch) | |
tree | 28f1bb455e15926efdae2736081703d38704529b | |
parent | 032bd1dacf088c1735a84be10dfe393e6bb105f1 (diff) | |
download | ansible-457a6ca03e9b4c6efe303114a7a62191927c460e.tar.gz |
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
-rw-r--r-- | lib/ansible/module_utils/netcfg.py | 2 |
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: |