Different variable for issue type
This commit is contained in:
@ -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']}"
|
||||
|
||||
Reference in New Issue
Block a user