diff --git a/anvil-python/anvil/provider/local/commands.py b/anvil-python/anvil/provider/local/commands.py index cc89833..cb46aeb 100644 --- a/anvil-python/anvil/provider/local/commands.py +++ b/anvil-python/anvil/provider/local/commands.py @@ -448,7 +448,6 @@ def join( ) ) - run_plan(plan2, console) machines = asyncio.run( jhelper.get_machines(deployment.infrastructure_model) ) @@ -459,9 +458,10 @@ def join( ScaleJujuStep( controller, n_machines, - ["--to", ",".join([str(x) for x in n_machines.keys()])], + ["--to", ",".join(machines.keys())], ) ) + run_plan(plan2, console) click.echo(f"Node joined cluster with roles: {pretty_roles}")