Skip to content

Commit

Permalink
Fix: code quality issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres D. Molins committed Oct 5, 2023
1 parent f277859 commit 36c0b69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vm_supervisor/vm/firecracker/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ def _create_network_file(self) -> bytes:
def _create_metadata_file(self) -> bytes:
"""Creates metadata configuration file for cloud-init tool"""

hostname = base64.b32encode(str.encode(self.vm_hash)).decode().strip("=").lower()
hostname = (
base64.b32encode(str.encode(self.vm_hash)).decode().strip("=").lower()
)

metadata = {
"instance-id": f"iid-instance-{self.vm_id}",
Expand Down

0 comments on commit 36c0b69

Please sign in to comment.