X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=modules%2Flibjuju%2Fexamples%2Faction.py;h=f839f1122dc1a597a3df1e6e4fec14b63c75a63f;hp=4a3cc6df45676d9be1368d4319d3e62feb733fb7;hb=b2a07f566be558a8b59b8b5dedfe8da5ae1b0132;hpb=c3e6c2ec9a1fddfc8e9bd31509b366e633b6d99e diff --git a/modules/libjuju/examples/action.py b/modules/libjuju/examples/action.py index 4a3cc6d..f839f11 100644 --- a/modules/libjuju/examples/action.py +++ b/modules/libjuju/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() + # connect to current model with current user, per Juju CLI await model.connect() - await model.reset(force=True) app = await model.deploy( 'git',