Different variable for issue type

This commit is contained in:
2025-05-12 15:35:42 -04:00
parent 65ba24e46d
commit 4fe0a8dbfc

View File

@ -645,12 +645,12 @@ class SystemHealthMonitor:
if drive_details['capacity']:
drive_size = f"[{drive_details['capacity']}] "
issue_type = 'SOFTWARE' if 'LXC' in issue else 'HARDWARE'
issue_category = 'SOFTWARE' if 'LXC' in issue else 'HARDWARE'
ticket_title = (
f"[{hostname}]"
f"{action_type['AUTO']}"
f"{self.TICKET_TEMPLATES[f'{issue_type}_TYPE'][issue_type]}"
f"{self.TICKET_TEMPLATES[f'{issue_category}_TYPE'][issue_category]}"
f"{issue}"
f"{scope['SINGLE_NODE']}"
f"{environment['PRODUCTION']}"