Merge pull request 'vms: simplify args passed to create_subprocess_exec' (#351) from Mic92-main into main
All checks were successful
assets1 / test (push) Successful in 7s
checks-impure / test (push) Successful in 8s
checks / test (push) Successful in 21s

This commit is contained in:
clan-bot 2023-09-27 10:32:25 +00:00
commit c2f276235b

View File

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