refact: use only server
This commit is contained in:
@@ -79,4 +79,17 @@ class LoggingService:
|
||||
message=message,
|
||||
target_id=server_id,
|
||||
target_name=server_name
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def log_host_action(db: Session, action: str, host_id: int, host_name: str, success: bool, message: str):
|
||||
"""Log Proxmox host actions (create/update/delete/wake/shutdown)"""
|
||||
LoggingService.log_action(
|
||||
db=db,
|
||||
action_type="host",
|
||||
action=action,
|
||||
success=success,
|
||||
message=message,
|
||||
target_id=host_id,
|
||||
target_name=host_name
|
||||
)
|
||||
Reference in New Issue
Block a user