Fixing conditional format
This commit is contained in:
parent
17dfe863ec
commit
1083a9e7ea
1 changed files with 4 additions and 1 deletions
|
@ -654,7 +654,10 @@ class CustomNetworkConfig(object):
|
|||
|
||||
for item in self.items:
|
||||
for regexp in patterns:
|
||||
string = item.text if ignore_whitespace is True else item.raw
|
||||
if ignore_whitespace is True:
|
||||
string = item.text
|
||||
else:
|
||||
string = item.raw
|
||||
if regexp.search(item.text):
|
||||
if item.text != replace:
|
||||
if parents == [p.text for p in item.parents]:
|
||||
|
|
Loading…
Reference in a new issue