Fix credential_name 77/8877/2
authorDavid Garcia <david.garcia@canonical.com>
Thu, 7 May 2020 10:28:05 +0000 (12:28 +0200)
committergarciadav <david.garcia@canonical.com>
Thu, 7 May 2020 13:31:19 +0000 (15:31 +0200)
Change-Id: I7eeed36b2f4d4cc47e8b2de56abcecaee24706f3
Signed-off-by: David Garcia <david.garcia@canonical.com>
n2vc/n2vc_juju_conn.py

index 0e10337..71ff06a 100644 (file)
@@ -1348,7 +1348,7 @@ class N2VCJujuConnector(N2VCConnector):
                         model_name=model_name,
                         config=config_dict,
                         cloud_name=self.cloud,
-                        credential_name="admin",
+                        credential_name=self.cloud,
                     )
                 self.log.info("New model created, name={}".format(model_name))
             else: