From d6be49c10e6be2e49e6ee9645bc2c0880007bcb1 Mon Sep 17 00:00:00 2001 From: Joe LeVeque Date: Tue, 27 Mar 2018 22:11:41 +0000 Subject: [PATCH] [service_acl] Detect expected output message even if it is followed by other text --- ansible/roles/test/tasks/service_acl.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/test/tasks/service_acl.yml b/ansible/roles/test/tasks/service_acl.yml index abaf3b94bf8..589042bbf0c 100644 --- a/ansible/roles/test/tasks/service_acl.yml +++ b/ansible/roles/test/tasks/service_acl.yml @@ -46,7 +46,7 @@ community: "{{ snmp_rocommunity }}" connection: local register: result - failed_when: result.msg != "No SNMP response received before timeout" + failed_when: "'No SNMP response received before timeout' not in result.msg" # Note that the timeout here should be sufficiently long enough to allow # config_service_acls.sh to reset the ACLs to their original configuration