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
pull/17768/head
Peter Sprygada 9 years ago committed by GitHub
parent db276373e5
commit 9694d60af5

@ -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…
Cancel
Save