Skip to content

Commit

Permalink
Merge pull request #435 from armosec/minotff
Browse files Browse the repository at this point in the history
Refactor validation error messages for EntityTypeCloudRule
  • Loading branch information
kooomix authored Feb 2, 2025
2 parents 270e8b6 + 4891497 commit 42847b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notifications/integrationref.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ func (e *EntityIdentifiers) Validate() error {
return fmt.Errorf("resource hash, resource id and cloud account guid are required for %s", e.Type)
}
case EntityTypeCloudRule:
if e.RuleHash == "" || e.CloudControlHash == "" || e.Severity == "" {
return fmt.Errorf("rule hash, cloud control hash and severity are required for %s", e.Type)
if e.RuleHash == "" {
return fmt.Errorf("rule hash is required for %s", e.Type)
}
default:
return fmt.Errorf("entity type %s is not supported", e.Type)
Expand Down

0 comments on commit 42847b3

Please sign in to comment.