From e13758ba90222d0531c6002623336ed20b27bd94 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 23 Mar 2020 12:27:57 +0100 Subject: [PATCH] copr-be: fixup cleanup-unused-vms-from-redis for python3 --- roles/copr/backend/templates/cleanup-unused-vms-from-redis | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/copr/backend/templates/cleanup-unused-vms-from-redis b/roles/copr/backend/templates/cleanup-unused-vms-from-redis index e08bd4718c..a628f25f3b 100644 --- a/roles/copr/backend/templates/cleanup-unused-vms-from-redis +++ b/roles/copr/backend/templates/cleanup-unused-vms-from-redis @@ -25,7 +25,7 @@ for worker; do *) continue ;; esac else - state=$(echo "$output" | python -c 'import sys, json; print json.load(sys.stdin)["state"]') + state=$(echo "$output" | python3 -c 'import sys, json; print(json.load(sys.stdin)["state"])') fi case $state in