mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
rename huaweicloudstack to hcso
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user