From d978dffe4eb2a2467d7a29f32662ca256c0e6f54 Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Sat, 3 Oct 2020 22:46:25 -0700 Subject: [PATCH] fix ansible version check error --- tests/ansible/integration/runner/crashy_new_style_module.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ansible/integration/runner/crashy_new_style_module.yml b/tests/ansible/integration/runner/crashy_new_style_module.yml index a29493be..73bac1f9 100644 --- a/tests/ansible/integration/runner/crashy_new_style_module.yml +++ b/tests/ansible/integration/runner/crashy_new_style_module.yml @@ -14,8 +14,8 @@ - out.rc == 1 # ansible/62d8c8fde6a76d9c567ded381e9b34dad69afcd6 - | - (ansible_version.full < '2.7' and out.msg == "MODULE FAILURE") or - (ansible_version.full >= '2.7' and + (ansible_version.full is version('2.7', '<') and out.msg == "MODULE FAILURE") or + (ansible_version.full is version('2.7', '>=') and out.msg == ( "MODULE FAILURE\n" + "See stdout/stderr for the exact error"