From 1384f17309615feca4a2e1d8eb827430e6e16614 Mon Sep 17 00:00:00 2001 From: dweinholz Date: Tue, 13 Aug 2024 09:08:41 +0200 Subject: [PATCH] fixed scripts --- simple_vm_client/openstack_connector/openstack_connector.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/simple_vm_client/openstack_connector/openstack_connector.py b/simple_vm_client/openstack_connector/openstack_connector.py index d0efdac..358c5ee 100644 --- a/simple_vm_client/openstack_connector/openstack_connector.py +++ b/simple_vm_client/openstack_connector/openstack_connector.py @@ -497,8 +497,7 @@ def create_save_metadata_auth_token_script(self, token: str) -> str: # Replace the placeholder with the actual token text = text.replace(placeholder, token) - # Encode the text safely, if necessary, and ensure it's a string - text = encodeutils.safe_encode(text.encode("utf-8")).decode("utf-8") + text = encodeutils.safe_encode(text.encode("utf-8")) return text @@ -1344,7 +1343,6 @@ def create_userdata( + encodeutils.safe_encode("\n".encode("utf-8")) + mount_script ) - return init_script def start_server(