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:
parent
032bd1dacf
commit
457a6ca03e
1 changed files with 1 additions and 1 deletions
|
@ -306,7 +306,7 @@ class NetworkConfig(object):
|
||||||
|
|
||||||
def difference(self, other, path=None, match='line', replace='line'):
|
def difference(self, other, path=None, match='line', replace='line'):
|
||||||
try:
|
try:
|
||||||
if path:
|
if path and match != 'line':
|
||||||
try:
|
try:
|
||||||
other = other.get_section_objects(path)
|
other = other.get_section_objects(path)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
|
Loading…
Add table
Reference in a new issue