Skip to content

Commit

Permalink
fix: enhance validation
Browse files Browse the repository at this point in the history
  • Loading branch information
thejurysays committed Feb 28, 2024
1 parent a638dec commit e5fee4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/utils/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func ValidatePaths(secretPaths []string, isManagedAccount bool, separator string
message := fmt.Sprintf("Invalid %s length=%v, valid length between 1 and %v, this secret will be skipped.", invalidPathName, len(path), maxName)
logger.Warn(message)
} else if len(name) > maxName || name == "" {
message := fmt.Sprintf("systemName=%s but found invalid %s length=%v, valid length between 1 and %v, this secret will be skipped.", path, invalidName, len(name), maxName)
message := fmt.Sprintf("%s=%s but found invalid %s length=%v, valid length between 1 and %v, this secret will be skipped.", invalidPathName, path, invalidName, len(name), maxName)
logger.Warn(message)
} else {
secretPath := fmt.Sprintf("%s%s%s", path, separator, name)
Expand Down

0 comments on commit e5fee4d

Please sign in to comment.