From: Philip Joseph Date: Fri, 9 Sep 2016 19:36:44 +0000 (-0400) Subject: Bug 34 : Fix Juju 2.x connectivity error X-Git-Tag: v1.0.0~35 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F01%2F301%2F1;p=osm%2FSO.git Bug 34 : Fix Juju 2.x connectivity error Signed-off-by: Philip Joseph --- diff --git a/common/python/rift/mano/utils/juju_api.py b/common/python/rift/mano/utils/juju_api.py index 3f3b0864..6eb3568b 100644 --- a/common/python/rift/mano/utils/juju_api.py +++ b/common/python/rift/mano/utils/juju_api.py @@ -256,9 +256,10 @@ class JujuApi(object): models = env.models.list() for m in models['user-models']: if m['model']['name'] == 'default': - mep = '{}/model/{}/api'.format(endpoint, m['model']['uuid']) + mep = '{}/model/{}/api'.format(self.endpoint, + m['model']['uuid']) model = Env2(mep, env_uuid=m['model']['uuid']) - l = model.login(args.password, user=args.user) + l = model.login(self.password, user=self.user) break if model is None: