Skip to content

Commit

Permalink
fixed scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinholz committed Aug 13, 2024
1 parent fc15d9f commit 1384f17
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions simple_vm_client/openstack_connector/openstack_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -1344,7 +1343,6 @@ def create_userdata(
+ encodeutils.safe_encode("\n".encode("utf-8"))
+ mount_script
)

return init_script

def start_server(
Expand Down

0 comments on commit 1384f17

Please sign in to comment.