Updated pushover exception
This commit is contained in:
parent
5732951cde
commit
36b67cd116
@ -4,7 +4,6 @@ def build_cont_list(obj, hypercare_containers):
|
||||
for i, c in enumerate(obj):
|
||||
if c["State"].lower() != "running":
|
||||
if c["Names"][0].lstrip("/") in hypercare_containers:
|
||||
#print(f'index: {i} container: {c["Names"][0].lstrip("/")} State: {c["State"]} ID: {c["Id"]}')
|
||||
cont_list.append(c)
|
||||
return cont_list
|
||||
|
||||
@ -12,7 +11,6 @@ def build_full_cont_list(obj, hypercare_containers):
|
||||
cont_full_list = []
|
||||
for i, c in enumerate(obj):
|
||||
if c["Names"][0].lstrip("/") in hypercare_containers:
|
||||
#print(f'index: {i} container: {c["Names"][0].lstrip("/")} State: {c["State"]} ID: {c["Id"]}')
|
||||
cont_full_list.append(c)
|
||||
return cont_full_list
|
||||
|
||||
@ -26,7 +24,6 @@ def process_cont_status(obj):
|
||||
if not obj:
|
||||
return -1 # Can't find the containter
|
||||
for c in enumerate(obj):
|
||||
# print(c[1]['Names'][0].lstrip("/"))
|
||||
if 'running' in c[1]["State"].lower():
|
||||
return 0
|
||||
if c[1]["State"] != 'running':
|
||||
|
Loading…
x
Reference in New Issue
Block a user