Unverified Commit 242b3dd2 authored by Jakob Görgen's avatar Jakob Görgen
Browse files

symphony/cli: use resource_group when creating runner

parent 5e6d1435
...@@ -34,7 +34,7 @@ app = Typer(help="Managing SimBricks runners.") ...@@ -34,7 +34,7 @@ app = Typer(help="Managing SimBricks runners.")
async def ls(): async def ls():
"""List runners.""" """List runners."""
runners = await client_provider.runner_client.list_runners() runners = await client_provider.runner_client.list_runners()
print_table_generic("Runners", runners, "id", "label", "tags") print_table_generic("Runners", runners, "id", "label", "tags", "resource_group_id")
@app.command() @app.command()
...@@ -42,7 +42,7 @@ async def ls(): ...@@ -42,7 +42,7 @@ async def ls():
async def show(runner_id: int): async def show(runner_id: int):
"""Show individual runner.""" """Show individual runner."""
runner = await client_provider.runner_client.get_runner(runner_id=runner_id) runner = await client_provider.runner_client.get_runner(runner_id=runner_id)
print_table_generic("Runners", [runner], "id", "label", "tags") print_table_generic("Runners", [runner], "id", "label", "tags", "resource_group_id")
@app.command() @app.command()
...@@ -54,10 +54,12 @@ async def delete(runner_id: int): ...@@ -54,10 +54,12 @@ async def delete(runner_id: int):
@app.command() @app.command()
@async_cli() @async_cli()
async def create(label: str, tags: list[str]): async def create(resource_group_id: int, label: str, tags: list[str]):
"""Update a runner with the the given label and tags.""" """Update a runner with the the given label and tags."""
runner = await client_provider.runner_client.create_runner(label=label, tags=tags) runner = await client_provider.runner_client.create_runner(
print_table_generic("Runner", [runner], "id", "label", "tags") resource_group_id=resource_group_id, label=label, tags=tags
)
print_table_generic("Runner", [runner], "id", "label", "tags", "resource_group_id")
@app.command() @app.command()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment