From 113ff0329f61cbbc03400acb1c6829da1bbc1bcc Mon Sep 17 00:00:00 2001 From: Patrik Lundin Date: Thu, 3 Oct 2024 12:57:24 +0200 Subject: [PATCH] baas2: Same encoding string everywhere While "utf8" works it seems python docs in general talks about "utf-8" and it is what we are using in all other places in the code so make this the same also. --- files/baas2/sunet-baas2-bootstrap | 2 +- files/baas2/sunet-baas2-tbmr-bootstrap | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/baas2/sunet-baas2-bootstrap b/files/baas2/sunet-baas2-bootstrap index 9b49f57ad..864eb449e 100755 --- a/files/baas2/sunet-baas2-bootstrap +++ b/files/baas2/sunet-baas2-bootstrap @@ -80,7 +80,7 @@ def get_installed_version() -> Union[str, None]: check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, - encoding="utf8", + encoding="utf-8", ) except subprocess.CalledProcessError as exc: # If the package is not installed this is OK, we will install it diff --git a/files/baas2/sunet-baas2-tbmr-bootstrap b/files/baas2/sunet-baas2-tbmr-bootstrap index e125c40d5..e74bf171f 100755 --- a/files/baas2/sunet-baas2-tbmr-bootstrap +++ b/files/baas2/sunet-baas2-tbmr-bootstrap @@ -52,7 +52,7 @@ def get_installed_version() -> Union[str, None]: check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, - encoding="utf8", + encoding="utf-8", ) except subprocess.CalledProcessError as exc: # If the package is not installed this is OK, we will install it