Bug 34 : Fix Juju 2.x connectivity error 01/301/1
authorPhilip Joseph <philip.joseph@riftio.com>
Fri, 9 Sep 2016 19:36:44 +0000 (15:36 -0400)
committerPhilip Joseph <philip.joseph@riftio.com>
Fri, 9 Sep 2016 19:46:54 +0000 (15:46 -0400)
Signed-off-by: Philip Joseph <philip.joseph@riftio.com>
common/python/rift/mano/utils/juju_api.py

index 3f3b086..6eb3568 100644 (file)
@@ -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: