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:
Peter Sprygada 2016-09-26 19:29:57 -04:00 committed by GitHub
parent db276373e5
commit 9694d60af5

View file

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