diff --git a/common/func.go b/common/func.go index b0b448b7..3f8961da 100644 --- a/common/func.go +++ b/common/func.go @@ -78,10 +78,7 @@ func GetVersion(devops bool, typ, version string) string { case string(ZenTaoMaxType): defaultVersion = DefaultZentaoDevOPSMaxVersion } - if version == defaultVersion || len(version) == 0 { - return defaultVersion - } - return version + return defaultVersion } func GetDefaultConfig() string {