vms: simplify args passed to create_subprocess_exec

This commit is contained in:
Jörg Thalheim
2023-09-27 12:30:06 +02:00
parent 041a98fae4
commit 974f07628b

View File

@@ -92,8 +92,7 @@ async def inspect_vm(
) -> VmInspectResponse: ) -> VmInspectResponse:
cmd = nix_inspect_vm_cmd(flake_attr, flake_url=flake_url) cmd = nix_inspect_vm_cmd(flake_attr, flake_url=flake_url)
proc = await asyncio.create_subprocess_exec( proc = await asyncio.create_subprocess_exec(
cmd[0], *cmd,
*cmd[1:],
stdout=asyncio.subprocess.PIPE, stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE,
) )