X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=examples%2Fcontroller.py;h=b61a6f6d19d6a49df8a0c1886c38bf8d22d7b83a;hb=b8a8281b1785358bd5632a119c016f21811172c6;hp=6002f683632fa3655d40887717a8eb7cfce70e9f;hpb=dcdf82bbc1ef310379f746518b2dd3b006353cb3;p=osm%2FN2VC.git diff --git a/examples/controller.py b/examples/controller.py index 6002f68..b61a6f6 100644 --- a/examples/controller.py +++ b/examples/controller.py @@ -8,7 +8,6 @@ This example: 5. Destroys the model """ -import asyncio import logging from juju.controller import Controller @@ -17,7 +16,8 @@ from juju import loop async def main(): controller = Controller() - await controller.connect_current() + # connect to current controller with current user, per Juju CLI + await controller.connect() model = await controller.add_model( 'my-test-model', 'aws',