X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=modules%2Flibjuju%2Fexamples%2Ffuture.py;h=5e974cfc95ef15c60d50e86a05b7f217d757884b;hp=01803255494c8fb594e584251a20a5ee82f991ac;hb=47998e0a2e15749f7da945a97cef1dc792c86353;hpb=68858c1915122c2dbc8999a5cd3229694abf5f3a diff --git a/modules/libjuju/examples/future.py b/modules/libjuju/examples/future.py index 0180325..5e974cf 100644 --- a/modules/libjuju/examples/future.py +++ b/modules/libjuju/examples/future.py @@ -2,7 +2,6 @@ This example doesn't work - it demonstrates features that don't exist yet. """ -import asyncio import logging from juju.model import Model @@ -11,8 +10,8 @@ from juju import loop 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() goal_state = Model.from_yaml('bundle-like-thing') ubuntu_app = await model.deploy(