rename huaweicloudstack to hcso

This commit is contained in:
tb365
2021-08-31 11:16:21 +08:00
parent 3b55b9882f
commit 28f381b602
216 changed files with 425 additions and 425 deletions
+3 -3
View File
@@ -355,7 +355,7 @@ func (manager *SCloudaccountManager) newFromICloudaccount(ctx context.Context, u
}
func (self *SCloudaccount) registerHuaweSaml(ctx context.Context) error {
if self.Provider != computeapi.CLOUD_PROVIDER_HUAWEI_CLOUD_STACK {
if self.Provider != computeapi.CLOUD_PROVIDER_HCSO {
return nil
}
delegate, err := self.getCloudDelegate(ctx)
@@ -482,7 +482,7 @@ type SCloudDelegate struct {
Brand string
Options struct {
cloudprovider.SHuaweiCloudStackEndpoints
cloudprovider.SHCSOEndpoints
cloudprovider.SApsaraEndpoints
}
ProxySetting proxyapi.SProxySetting
@@ -569,7 +569,7 @@ func (account *SCloudDelegate) GetProvider() (cloudprovider.ICloudProvider, erro
ProxyFunc: proxyFunc,
SApsaraEndpoints: account.Options.SApsaraEndpoints,
SHuaweiCloudStackEndpoints: account.Options.SHuaweiCloudStackEndpoints,
SHCSOEndpoints: account.Options.SHCSOEndpoints,
AccountId: account.Id,
})
+1 -1
View File
@@ -45,7 +45,7 @@ func (d *SHuaweiSAMLDriver) GetSpInitiatedLoginData(ctx context.Context, userCre
return data, httperrors.NewGeneralError(err)
}
account := _account.(*SCloudaccount)
if account.Provider != api.CLOUD_PROVIDER_HUAWEI && account.Provider != api.CLOUD_PROVIDER_HUAWEI_CLOUD_STACK {
if account.Provider != api.CLOUD_PROVIDER_HUAWEI && account.Provider != api.CLOUD_PROVIDER_HCSO {
return data, httperrors.NewClientError("cloudaccount %s is %s not %s", account.Id, account.Provider, api.CLOUD_PROVIDER_HUAWEI)
}
if account.SAMLAuth.IsFalse() {