mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-10 10:51:03 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user