+ 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"