From 13cb4f66abca66a811041bb1622d324d3a87ecc6 Mon Sep 17 00:00:00 2001 From: Sagi Shnaidman Date: Thu, 19 Oct 2023 13:27:54 +0300 Subject: [PATCH] Fix CI job for podman connection Signed-off-by: Sagi Shnaidman --- ci/run_connection_test.sh | 2 +- docs/podman_containers_module.html | 4 ++-- plugins/modules/podman_containers.py | 2 +- .../targets/connection_podman/test_connection.inventory | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ci/run_connection_test.sh b/ci/run_connection_test.sh index ecdeff6b..4974d2f9 100755 --- a/ci/run_connection_test.sh +++ b/ci/run_connection_test.sh @@ -19,7 +19,7 @@ echo "Testing $CON_TYPE connection ${ROOT:+'with root'}" if [[ "$CON_TYPE" == "podman" ]]; then ${SUDO} $PODMAN_EXE ps | grep -q "${CON_TYPE}-container" || \ - ${SUDO} $PODMAN_EXE run -d --name "${CON_TYPE}-container" python:3-alpine sleep 1d + ${SUDO} $PODMAN_EXE run -d --name "${CON_TYPE}-container" python:3.10-alpine sleep 1d elif [[ "$CON_TYPE" == "buildah" ]]; then ${SUDO} buildah from --name=buildah-container python:2 fi diff --git a/docs/podman_containers_module.html b/docs/podman_containers_module.html index 4cd64e30..69804d62 100644 --- a/docs/podman_containers_module.html +++ b/docs/podman_containers_module.html @@ -119,7 +119,7 @@

Examples - name: web image: nginx - name: test - image: python:3-alpine + image: python:3.10-alpine command: python -V @@ -195,4 +195,4 @@

Quick search

- \ No newline at end of file + diff --git a/plugins/modules/podman_containers.py b/plugins/modules/podman_containers.py index c67aee34..7f418a67 100644 --- a/plugins/modules/podman_containers.py +++ b/plugins/modules/podman_containers.py @@ -41,7 +41,7 @@ - name: web image: nginx - name: test - image: python:3-alpine + image: python:3.10-alpine command: python -V ''' diff --git a/tests/integration/targets/connection_podman/test_connection.inventory b/tests/integration/targets/connection_podman/test_connection.inventory index c64c399f..31bce66b 100644 --- a/tests/integration/targets/connection_podman/test_connection.inventory +++ b/tests/integration/targets/connection_podman/test_connection.inventory @@ -3,8 +3,8 @@ podman-container [podman:vars] # 1. install podman # 2. create container: -# podman pull python:3-alpine -# podman run -d --name podman-container python:3-alpine sleep 999999 +# podman pull python:3.10-alpine +# podman run -d --name podman-container python:3.10-alpine sleep 999999 # 3. run test: # ./bin/ansible-test integration connection_podman # 6. remove container