Merge pull request #17467 from privateip/netcfg
fixes issue with netcfg not working with match=line and path
This commit is contained in:
commit
686d79a515
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'):
|
||||
try:
|
||||
if path:
|
||||
if path and match != 'line':
|
||||
try:
|
||||
other = other.get_section_objects(path)
|
||||
except ValueError:
|
||||
|
|
Loading…
Reference in a new issue