From dd7dc00e8c6d07cce96a5c7de6a24eef3810a7dc Mon Sep 17 00:00:00 2001 From: s-hertel <19572925+s-hertel@users.noreply.github.com> Date: Thu, 6 Jun 2024 11:03:29 -0400 Subject: [PATCH] fix syntax for no extra vars --- test/integration/targets/any_errors_fatal/runme.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/integration/targets/any_errors_fatal/runme.sh b/test/integration/targets/any_errors_fatal/runme.sh index c17fc5cb3da..12d487f7679 100755 --- a/test/integration/targets/any_errors_fatal/runme.sh +++ b/test/integration/targets/any_errors_fatal/runme.sh @@ -54,9 +54,12 @@ args=( "-e any_errors_fatal=true run_once=true" "" ) - for arg in "${args[@]}"; do - ansible-playbook -i inventory "$@" 83292.yml "$arg" | tee out.txt + if [ -z "$arg" ]; then + ansible-playbook -i inventory "$@" 83292.yml | tee out.txt + else + ansible-playbook -i inventory "$@" 83292.yml "$arg" | tee out.txt + fi [ "$(grep -c 'SHOULD NOT HAPPEN' out.txt)" -eq 0 ] [ "$(grep -c 'rescuedd' out.txt)" -eq 2 ]