fix: add missing action mappings for reinstall and change-password in LoggingService

- Added 'reinstall': 'reinstalled' mapping in action_messages
- Added 'change-password': 'password changed' mapping in action_messages
- Fixes HTTP 400 Invalid action error for new VM/LXC operations
- All operations now properly logged to audit_logs table

Related operations:
- POST /api/{server_id}/vm/{vmid}/reinstall
- POST /api/{server_id}/vm/{vmid}/change-password
- POST /api/{server_id}/container/{vmid}/change-password

Adds:
- BUGFIX_REPORT.md - detailed bug analysis and fix
- TEST_NEW_OPERATIONS.md - operation documentation
- test_new_operations.py - verification script
This commit is contained in:
markmorado
2026-04-29 22:37:52 +02:00
parent ae41dacd0e
commit bba66d2d2c
4 changed files with 434 additions and 1 deletions

View File

@@ -277,7 +277,9 @@ class LoggingService:
"snapshot": "snapshot created",
"resize": "disk resized",
"console": "console accessed",
"config_update": "config updated"
"config_update": "config updated",
"reinstall": "reinstalled",
"change-password": "password changed"
}
action_text = action_messages.get(action, action)