From a52f4bb4a4756743cd095a99300469af9a0664ec Mon Sep 17 00:00:00 2001 From: Ross Williams Date: Wed, 13 Oct 2021 12:23:46 +0000 Subject: [PATCH] pkgng: Ansible 2.9 has no "false" Jinja2 test Apparently Ansible 2.9 doesn't have the "false" test in Jinja2 contexts. Switching to use `rejectattr(...)` instead of `selectattr(..., "false")`. --- tests/integration/targets/pkgng/tasks/freebsd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/targets/pkgng/tasks/freebsd.yml b/tests/integration/targets/pkgng/tasks/freebsd.yml index dc5e46538a..4acf19d8c0 100644 --- a/tests/integration/targets/pkgng/tasks/freebsd.yml +++ b/tests/integration/targets/pkgng/tasks/freebsd.yml @@ -471,7 +471,7 @@ # Invalid strings should not change anything - '(pkgng_example8_invalid_annotation_failure.results | selectattr("changed") | list | count) == 0' # Invalid strings should always fail - - '(pkgng_example8_invalid_annotation_failure.results | selectattr("failed", "false") | list | count) == 0' + - '(pkgng_example8_invalid_annotation_failure.results | rejectattr("failed") | list | count) == 0' # Invalid strings should not cause an exception - '(pkgng_example8_invalid_annotation_failure.results | selectattr("exception", "defined") | list | count) == 0' # Verify annotations are unaffected