mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
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
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user