X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=modules%2Flibjuju%2Fexamples%2Fdeploy.py;h=43764d7f690db735c9a09c35237bd14ce5037f8a;hp=e6c306a1aeedea0f7bd335d10576b95b18aa39e2;hb=e2051cca7dac12aa09f6ed33555dcc4548c4b52b;hpb=68858c1915122c2dbc8999a5cd3229694abf5f3a diff --git a/modules/libjuju/examples/deploy.py b/modules/libjuju/examples/deploy.py index e6c306a..43764d7 100644 --- a/modules/libjuju/examples/deploy.py +++ b/modules/libjuju/examples/deploy.py @@ -13,7 +13,8 @@ from juju.model import Model async def main(): model = Model() print('Connecting to model') - await model.connect_current() + # connect to current model with current user, per Juju CLI + await model.connect() try: print('Deploying ubuntu')