From 71d69942de5da5974b7ff7da12fe59d090033fb6 Mon Sep 17 00:00:00 2001 From: Philip Joseph Date: Fri, 9 Sep 2016 15:36:44 -0400 Subject: [PATCH] Bug 34 : Fix Juju 2.x connectivity error Signed-off-by: Philip Joseph --- common/python/rift/mano/utils/juju_api.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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: -- 2.25.1