X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=examples%2Ffuture.py;h=5e974cfc95ef15c60d50e86a05b7f217d757884b;hp=01803255494c8fb594e584251a20a5ee82f991ac;hb=b8a8281b1785358bd5632a119c016f21811172c6;hpb=dcdf82bbc1ef310379f746518b2dd3b006353cb3 diff --git a/examples/future.py b/examples/future.py index 0180325..5e974cf 100644 --- a/examples/future.py +++ b/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(