mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-29 17:58:36 +08:00
normalizeProvider fix
This commit is contained in:
@@ -427,6 +427,10 @@ func intervalMem(n int) (int, int) {
|
||||
}
|
||||
|
||||
func normalizeProvider(provider string) string {
|
||||
if len(provider) == 0 {
|
||||
return provider
|
||||
}
|
||||
|
||||
for _, p := range CLOUD_PROVIDERS {
|
||||
if strings.ToLower(p) == strings.ToLower(provider) {
|
||||
return p
|
||||
|
||||
Reference in New Issue
Block a user