From ff478a8fd63bc365ed44e089c8f2ee5118e27bb3 Mon Sep 17 00:00:00 2001 From: Fernando Harald Barreiro Megino Date: Mon, 12 Feb 2024 11:09:01 +0100 Subject: [PATCH] K8S: Update execution string to python3 and python2 compatibility --- pandaharvester/harvestermisc/k8s_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandaharvester/harvestermisc/k8s_utils.py b/pandaharvester/harvestermisc/k8s_utils.py index e91d1f31..a0d51ba2 100644 --- a/pandaharvester/harvestermisc/k8s_utils.py +++ b/pandaharvester/harvestermisc/k8s_utils.py @@ -21,7 +21,7 @@ # command and image defaults DEF_COMMAND = ["/usr/bin/bash"] -DEF_ARGS = ["-c", "cd; python $EXEC_DIR/pilots_starter.py || true"] +DEF_ARGS = ["-c", "cd; command -v python3 >/dev/null && python3 $EXEC_DIR/pilots_starter.py || python $EXEC_DIR/pilots_starter.py || true"] DEF_IMAGE = "atlasadc/atlas-grid-centos7"