From 9694d60af5e9cde7aa684e9795b79f9fbb928ce5 Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Mon, 26 Sep 2016 19:29:57 -0400 Subject: [PATCH] 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 --- lib/ansible/module_utils/netcli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/netcli.py b/lib/ansible/module_utils/netcli.py index 10a544f5b4b..1d7638285a6 100644 --- a/lib/ansible/module_utils/netcli.py +++ b/lib/ansible/module_utils/netcli.py @@ -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