Merge pull request #17467 from privateip/netcfg

fixes issue with netcfg not working with match=line and path
This commit is contained in:
Peter Sprygada 2016-09-08 15:48:40 -04:00 committed by GitHub
commit 686d79a515

View file

@ -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: