优化结构
This commit is contained in:
@@ -248,7 +248,7 @@ func mergeIntegrationSecrets(kind, provider string, values, old map[string]any)
|
||||
secretFields := integrationSecretFields(kind, provider)
|
||||
for key, value := range values {
|
||||
if secretFields[key] || integrationbiz.IsIntegrationSecretKey(key) {
|
||||
if text, ok := value.(string); ok && text == config.MaskedSecret {
|
||||
if text, ok := value.(string); ok && config.IsMaskedSecret(strings.TrimSpace(text)) {
|
||||
if prior, exists := old[key]; exists {
|
||||
values[key] = prior
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user