From 2dfc80c21f476426f363dd1036991dbe26a1191a Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Wed, 21 Aug 2024 19:37:26 -0600 Subject: [PATCH] test: use ansible_python_interpreter The ostree testing was failing because /usr/bin/python was not found. Just use ansible_python_interpreter to use the same python intepreter used by ansible. Signed-off-by: Rich Megginson --- tests/tests_trusted_execution.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/tests_trusted_execution.yml b/tests/tests_trusted_execution.yml index 4162d95..a4d39b0 100644 --- a/tests/tests_trusted_execution.yml +++ b/tests/tests_trusted_execution.yml @@ -50,10 +50,8 @@ - "{{ __test_fpd_exe1 }}" - "{{ __test_fpd_exe2 }}" vars: - __python: "{{ '/usr/libexec/platform-python' - if (ansible_facts['distribution_major_version'] == '8' and - ansible_facts['os_family'] == 'RedHat') - else '/usr/bin/python' }}" + __python: "{{ ansible_python_interpreter | + d(discovered_interpreter_python) }}" - name: Create a new user user: