Merge branch 'splunk:develop' into apger-content-v4

This commit is contained in:
apger
2021-07-15 12:52:27 -05:00
committed by GitHub
+1 -1
View File
@@ -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