will it blend better?

This commit is contained in:
2023-11-11 23:37:59 +01:00
parent 0776e43f0d
commit 7a3eb303a9

View File

@@ -159,7 +159,7 @@ def backup_service(servicename: str, servicesdict: dict, composefilepath: str) -
return True return True
dockerclient = docker.from_env() dockerclient = docker.from_env()
containersid = os.popen(f"docker-compose --file {composefilepath} ps --quiet {servicename}").readlines() containersid = os.popen(f"docker-compose --file {composefilepath} ps --quiet {servicename}").read().splitlines()
containerrunning = [] containerrunning = []
for containerid in containersid: for containerid in containersid:
print(containerid) print(containerid)