From 605939761ef0c5cb2e7e91b520172d490222f07c Mon Sep 17 00:00:00 2001 From: dweinholz Date: Thu, 30 Nov 2023 16:03:30 +0100 Subject: [PATCH] fixed script --- simple_vm_client/openstack_connector/openstack_connector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple_vm_client/openstack_connector/openstack_connector.py b/simple_vm_client/openstack_connector/openstack_connector.py index 6e50472..cff9d49 100644 --- a/simple_vm_client/openstack_connector/openstack_connector.py +++ b/simple_vm_client/openstack_connector/openstack_connector.py @@ -1160,7 +1160,7 @@ def create_userdata( additional_keys: list[str], ) -> str: - unlock_ubuntu_user_script = "\npasswd -u ubuntu\n" + unlock_ubuntu_user_script = "#!/bin/bash\npasswd -u ubuntu\n" unlock_ubuntu_user_script_encoded = encodeutils.safe_encode( unlock_ubuntu_user_script.encode("utf-8") )