X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_mon%2Fcore%2Fauth.py;h=6f5e20ad30cead534c735aac27d0cf46bb043d86;hb=refs%2Fchanges%2F68%2F5968%2F1;hp=7b61fe1dd6e611b5dfe7a0902d61fd3cdfe731ef;hpb=181cce8e28a9b6c5c6fa1fa8aa515de3b187a2e1;p=osm%2FMON.git diff --git a/osm_mon/core/auth.py b/osm_mon/core/auth.py index 7b61fe1..6f5e20a 100644 --- a/osm_mon/core/auth.py +++ b/osm_mon/core/auth.py @@ -42,6 +42,14 @@ class AuthManager: credentials.password = creds_dict['vim_password'] credentials.tenant_name = creds_dict['vim_tenant_name'] credentials.config = json.dumps(creds_dict['config']) + if creds_dict.get('OS_REGION_NAME'): + credentials.region_name = creds_dict['OS_REGION_NAME'] + else: + credentials.region_name = "RegionOne" + if creds_dict.get('OS_ENDPOINT_TYPE'): + credentials.endpoint_type = creds_dict['OS_ENDPOINT_TYPE'] + else: + credentials.endpoint_type = "publicURL" self.database_manager.save_credentials(credentials) def get_credentials(self, vim_uuid):