From 600de4334491e51e1412f80231d3fcf0db765214 Mon Sep 17 00:00:00 2001 From: Tobias Trabelsi Date: Sat, 10 Sep 2022 15:30:14 +0200 Subject: [PATCH] string to bytes like and back --- bitwarden-crd-operator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitwarden-crd-operator.py b/bitwarden-crd-operator.py index 300b4e5..d19fe14 100755 --- a/bitwarden-crd-operator.py +++ b/bitwarden-crd-operator.py @@ -23,8 +23,8 @@ def create_fn(spec, name, namespace, logger, **kwargs): original_crd=name, secret_name=secret_name, namespace=secret_namespace, - username=base64.b64encode("test"), - password=base64.b64encode("test") + username=str(base64.b64encode("test".encode("utf-8")), "utf-8"), + password=str(base64.b64encode("test".encode("utf-8")), "utf-8") ) obj = api.create_namespaced_secret(