X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=examples%2Faction.py;fp=examples%2Faction.py;h=f839f1122dc1a597a3df1e6e4fec14b63c75a63f;hp=0f25647d78d147c13ef8258d9773bbcd24ec069b;hb=b8a8281b1785358bd5632a119c016f21811172c6;hpb=dcdf82bbc1ef310379f746518b2dd3b006353cb3 diff --git a/examples/action.py b/examples/action.py index 0f25647..f839f11 100644 --- a/examples/action.py +++ b/examples/action.py @@ -7,7 +7,6 @@ This example: 4. Waits for the action results to come back, then exits. """ -import asyncio import logging from juju import loop @@ -27,8 +26,8 @@ async def run_action(unit): async def main(): model = Model() - await model.connect_current() - await model.reset(force=True) + # connect to current model with current user, per Juju CLI + await model.connect() app = await model.deploy( 'git',