pushing existing work
This commit is contained in:
8
cprocess.py
Normal file
8
cprocess.py
Normal file
@@ -0,0 +1,8 @@
|
||||
def build_cont_list(obj):
|
||||
cont_list = []
|
||||
for i, c in enumerate(obj):
|
||||
if c["State"].lower() != "running":
|
||||
print(f'index: {i} container: {c["Names"][0].lstrip("/")} State: {c["State"]} ID: {c["Id"]}')
|
||||
cont_list.append(c)
|
||||
print(len(cont_list))
|
||||
return cont_list
|
||||
Reference in New Issue
Block a user