Merge "Fix check_output return on Debian"

This commit is contained in:
Zuul 2023-01-16 16:14:22 +00:00 committed by Gerrit Code Review
commit 8ae54c7858
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ def add_pod_security_admission_controller_labels():
cmd = ["kubectl", "--kubeconfig=/etc/kubernetes/admin.conf",
"get", "namespaces", "-o=name"]
namespaces_output = subprocess.check_output(cmd)
namespaces_output = subprocess.check_output(cmd).decode("utf-8")
except Exception as exc:
LOG.error('Command failed:\n %s' % (cmd))