Updated Priorities causing no tickets to cut

This commit is contained in:
2024-12-13 18:09:34 -05:00
parent 57c996392e
commit 9a4a2dadc9

View File

@ -133,7 +133,7 @@ class SystemHealthMonitor:
for issue in issues:
# Set default values
priority = "P4"
priority = ""
category = "Hardware"
issue_type = "Problem"
scope = "[single-node]"
@ -141,18 +141,18 @@ class SystemHealthMonitor:
if "Disk" in issue:
hardware_type = "[hardware]"
if "CRITICAL" in issue or "SMART failure" in issue:
priority = "P2"
priority = "2"
elif "WARNING" in issue:
priority = "P3"
priority = "3"
elif "Memory" in issue:
hardware_type = "[hardware]"
priority = "P3"
priority = "3"
elif "CPU" in issue:
hardware_type = "[hardware]"
priority = "P3"
priority = "3"
elif "Network" in issue:
hardware_type = "[network]"
priority = "P2"
priority = "2"
scope = "[cluster-wide]"
# Create standardized ticket title