mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
Merge branch 'splunk:develop' into apger-content-v4
This commit is contained in:
+1
-1
@@ -176,7 +176,7 @@ def validate_standard_fields(object, uuids):
|
||||
if 'impact' in object['tags'] and 'confidence' in object['tags']:
|
||||
calculated_risk_score = int(((object['tags']['impact'])*(object['tags']['confidence']))/100)
|
||||
if calculated_risk_score != object['tags']['risk_score']:
|
||||
errors.append("ERROR: risk_score not calulated correctly and it should be set as: %s" % calculated_risk_score)
|
||||
errors.append("ERROR: risk_score not calulated correctly and it should be set to %s for " % calculated_risk_score + object['name'])
|
||||
|
||||
return errors, uuids
|
||||
|
||||
|
||||
Reference in New Issue
Block a user