File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1965,6 +1965,14 @@ def _create_notifications():
1965
1965
for finding in findings :
1966
1966
total_count += 1
1967
1967
sla_age = finding .sla_days_remaining ()
1968
+
1969
+ # get the sla enforcement for the severity and, if the severity setting is not enforced, do not notify
1970
+ # resolves an issue where notifications are always sent for the severity of SLA that is not enforced
1971
+ severity , enforce = finding .get_sla_period ()
1972
+ if not enforce :
1973
+ logger .debug (f"SLA is not enforced for Finding { finding .id } of { severity } severity, skipping notification." )
1974
+ continue
1975
+
1968
1976
# if SLA is set to 0 in settings, it's a null. And setting at 0 means no SLA apparently.
1969
1977
if sla_age is None :
1970
1978
sla_age = 0
You can’t perform that action at this time.
0 commit comments