feat(hoster): Update container ID retrieval
Retrieve container ID from 'Actor.ID' and add validation
This commit is contained in:
parent
8b5ed3cd19
commit
8eed9f9e13
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue