From 1fc358eeb4dd98d9acc2316c8e6aaa223023b219 Mon Sep 17 00:00:00 2001 From: mhaag-spl <5632822+MHaggis@users.noreply.github.com> Date: Thu, 15 Jul 2021 07:07:14 -0600 Subject: [PATCH] Validate.py Modified validate to share a bit more info on the score that was incorrect. --- bin/validate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/validate.py b/bin/validate.py index 404859e497..eac324e8a8 100644 --- a/bin/validate.py +++ b/bin/validate.py @@ -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