make sure that flake url is always set in the cli

This commit is contained in:
Jörg Thalheim
2023-12-08 11:05:22 +01:00
parent bbc411135c
commit f261578187
2 changed files with 7 additions and 2 deletions

View File

@@ -270,6 +270,8 @@ def run_vm(
def run_command(args: argparse.Namespace) -> None:
flake_url = args.flake_url or args.flake
if not flake_url:
flake_url = Path.cwd()
vm = asyncio.run(inspect_vm(flake_url=flake_url, flake_attr=args.machine))
run_vm(vm, args.option)