feat(hoster): Update container ID retrieval

Retrieve container ID from 'Actor.ID' and add validation
This commit is contained in:
mmmohebi 2025-11-18 13:20:04 +03:30
parent 8b5ed3cd19
commit 8eed9f9e13
1 changed files with 3 additions and 1 deletions

View File

@ -51,7 +51,9 @@ def main():
continue continue
action = event.get("Action") action = event.get("Action")
container_id = event.get("id") container_id = event.get("Actor", {}).get("ID")
if not container_id:
continue
if action == "start": if action == "start":
c = get_container(container_id) c = get_container(container_id)