fixes issue where arguments for regexp search() where transposed ()

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 
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 return str(self.value) in value
def matches(self, 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 return match is not None