mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-06-08 15:24:23 +08:00
未设置正确的region prefix
This commit is contained in:
@@ -68,6 +68,10 @@ func NewOpenStackClient(providerID string, providerName string, authURL string,
|
||||
return cli, cli.fetchRegions()
|
||||
}
|
||||
|
||||
func (cli *SOpenStackClient) GetCloudRegionExternalIdPrefix() string {
|
||||
return fmt.Sprintf("%s/%s/", CLOUD_PROVIDER_OPENSTACK, cli.providerID)
|
||||
}
|
||||
|
||||
func (cli *SOpenStackClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error) {
|
||||
subAccount := cloudprovider.SSubAccount{
|
||||
Account: fmt.Sprintf("%s/%s", cli.project, cli.username),
|
||||
|
||||
Reference in New Issue
Block a user