Bug 34 : Fix juju 2.x login from SO 15/315/1
authorPhilip Joseph <philip.joseph@riftio.com>
Mon, 12 Sep 2016 18:43:08 +0000 (18:43 +0000)
committerPhilip Joseph <philip.joseph@riftio.com>
Mon, 12 Sep 2016 18:46:31 +0000 (18:46 +0000)
Signed-off-by: Philip Joseph <philip.joseph@riftio.com>
common/python/rift/mano/utils/juju_api.py

index 6eb3568..3d7b369 100644 (file)
@@ -259,7 +259,7 @@ class JujuApi(object):
                     mep =  '{}/model/{}/api'.format(self.endpoint,
                                                     m['model']['uuid'])
                     model = Env2(mep, env_uuid=m['model']['uuid'])
-                    l = model.login(self.password, user=self.user)
+                    l = model.login(self.secret, user=self.user)
                     break
 
             if model is None: