From 1b4482b16a3842f1f31a86a8d4dcf746db3beeaa Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mar 23 2020 11:29:10 +0000 Subject: copr-be: fixup cleanup-unused-vms-from-redis for python3 --- diff --git a/roles/copr/backend/templates/cleanup-unused-vms-from-redis b/roles/copr/backend/templates/cleanup-unused-vms-from-redis index e08bd47..a628f25 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