machines api: always create empty settings.json
Some checks failed
checks-impure / test (pull_request) Successful in 15s
checks / test (pull_request) Failing after 1m6s

This commit is contained in:
DavHau 2023-09-02 18:29:12 +02:00
parent a0d1b09b1d
commit 2a11b1c5d1

View File

@ -6,6 +6,9 @@ from .folders import machine_folder
def create_machine(name: str) -> None:
folder = machine_folder(name)
folder.mkdir(parents=True, exist_ok=True)
# create empty settings.json file inside the folder
with open(folder / "settings.json", "w") as f:
f.write("{}")
def create_command(args: argparse.Namespace) -> None: