未设置正确的region prefix

This commit is contained in:
ioito
2019-05-23 17:38:13 +08:00
parent 7fb6731647
commit 6ee0bd274b
3 changed files with 9 additions and 1 deletions

View File

@@ -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),