Skip to content

Commit

Permalink
K8S: Update execution string to python3 and python2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarreir committed Feb 12, 2024
1 parent b77511b commit ff478a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandaharvester/harvestermisc/k8s_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down

0 comments on commit ff478a8

Please sign in to comment.