Squashed 'modules/libjuju/' changes from c50c361..c127833
[osm/N2VC.git] / examples / add_model.py
index 3e46490..88766f1 100644 (file)
@@ -19,7 +19,8 @@ LOG = getLogger(__name__)
 async def main():
     controller = Controller()
     print("Connecting to controller")
-    await controller.connect_current()
+    # connect to current controller with current user, per Juju CLI
+    await controller.connect()
 
     try:
         model_name = "addmodeltest-{}".format(uuid.uuid4())