fixes issue where arguments for regexp search() where transposed (#17764)
The arguments for the regex search() function were transposed in the netcli match() method that caused conditionals to fail. Switched the arguments to fixe the bug fixes #17749
This commit is contained in:
parent
db276373e5
commit
9694d60af5
1 changed files with 1 additions and 1 deletions
|
@ -296,5 +296,5 @@ class Conditional(object):
|
|||
return str(self.value) in value
|
||||
|
||||
def matches(self, value):
|
||||
match = re.search(value, self.value, re.M)
|
||||
match = re.search(self.value, value, re.M)
|
||||
return match is not None
|
||||
|
|
Loading…
Reference in a new issue