X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=modules%2Flibjuju%2Fexamples%2Ffuture.py;h=5e974cfc95ef15c60d50e86a05b7f217d757884b;hp=c93981a58d9f56a843029d52c82e7e47a12bd88d;hb=refs%2Fchanges%2F94%2F6394%2F1;hpb=421c4a23dc5e60db9596b79ea87cdc19cc463e9b diff --git a/modules/libjuju/examples/future.py b/modules/libjuju/examples/future.py index c93981a..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() + # connect to current model with current user, per Juju CLI await model.connect() - await model.reset(force=True) goal_state = Model.from_yaml('bundle-like-thing') ubuntu_app = await model.deploy(