Improved logging messages. Added ClanError if flake create or machine create already exist

This commit is contained in:
Qubasa
2023-10-18 12:17:46 +02:00
parent d96ea61243
commit 0ab2b853f2
8 changed files with 23 additions and 19 deletions

View File

@@ -34,9 +34,9 @@ class BuildVmTask(BaseTask):
]
)
)
vm_json = "".join(cmd.stdout)
vm_json = "".join(cmd.stdout).strip()
self.log.debug(f"VM JSON path: {vm_json}")
with open(vm_json.strip()) as f:
with open(vm_json) as f:
return json.load(f)
def run(self) -> None: