Commit bfcc9597 authored by jithu.tagore's avatar jithu.tagore

Update infra_as_service_monitor.py

parent 97adf421
......@@ -173,7 +173,7 @@ def docker_container():
docker_client = docker.from_env()
containers = docker_client.containers.list(all=True)
for i in containers:
if i.attrs["State"]["Status"] == "exited":
if i.attrs["State"]["Status"] == config['service']['docker_conatiner_state']:
container_restart.append(i)
data.append([i.name, i.id, i.attrs["State"]["Status"]])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment