Fix missing drive capacity in ticket titles

Problem: Drive capacity was being extracted but never inserted into ticket titles.
The drive_size variable was calculated from drive details but omitted from the
ticket_title string construction.

Solution: Added drive_size to ticket title format between category and issue.

Example ticket titles now show:
- Before: "[hostname][auto][hardware]Drive /dev/sda has SMART issues..."
- After:  "[hostname][auto][hardware][16.0 TB] Drive /dev/sda has SMART issues..."

This makes it easier to identify which drives need attention at a glance.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-06 17:15:02 -05:00
parent 72e61bd94e
commit 63daa57d80

View File

@@ -1283,6 +1283,7 @@ class SystemHealthMonitor:
f"[{hostname}]"
f"{action_type['AUTO']}"
f"{category_template}"
f"{drive_size}" # Insert drive capacity here
f"{issue}"
f"{scope}"
f"{environment['PRODUCTION']}"