copr-be: fixup cleanup-unused-vms-from-redis for python3

This commit is contained in:
Pavel Raiskup 2020-03-23 12:27:57 +01:00 committed by Pierre-Yves Chibon
parent bedb371caf
commit e13758ba90

View file

@ -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