Added state directory.

This commit is contained in:
Qubasa
2023-10-13 19:56:10 +02:00
parent fa5f39f226
commit 711c70d1f0
10 changed files with 74 additions and 35 deletions

View File

@@ -27,8 +27,8 @@ async def inspect_vm(flake_url: AnyUrl | Path, flake_attr: str) -> VmConfig:
f'{flake_url}#clanInternals.machines."{system}"."{flake_attr}".config.system.clan.vm.config'
]
)
stdout, stderr = await run(cmd)
data = json.loads(stdout)
out = await run(cmd)
data = json.loads(out.stdout)
return VmConfig(flake_url=flake_url, flake_attr=flake_attr, **data)