Different variable for issue type
This commit is contained in:
@ -645,12 +645,12 @@ class SystemHealthMonitor:
|
|||||||
if drive_details['capacity']:
|
if drive_details['capacity']:
|
||||||
drive_size = f"[{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 = (
|
ticket_title = (
|
||||||
f"[{hostname}]"
|
f"[{hostname}]"
|
||||||
f"{action_type['AUTO']}"
|
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"{issue}"
|
||||||
f"{scope['SINGLE_NODE']}"
|
f"{scope['SINGLE_NODE']}"
|
||||||
f"{environment['PRODUCTION']}"
|
f"{environment['PRODUCTION']}"
|
||||||
|
|||||||
Reference in New Issue
Block a user