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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user