This commit is contained in:
2025-12-17 00:08:22 +01:00
parent 4884ba41c4
commit 91702d8f4a

View File

@@ -970,16 +970,12 @@ class Portainer:
text="Choose a service:", text="Choose a service:",
values=service_tuples values=service_tuples
).run() ).run()
print(service_tuples)
if "__ONLY_CHECK__" in service_ids: if "__ONLY_CHECK__" in service_ids:
print("ONLY CHECK")
service_ids.remove("__ONLY_CHECK__")
self.args.update = False self.args.update = False
else: else:
self.args.update = True self.args.update = True
if "__ALL__" in service_ids: if "__ALL__" in service_ids:
service_ids = [s[0] for s in service_tuples if s[0] != "__ALL__" and s[0] != "__ONLY_CHECK__"] service_ids = [s[0] for s in service_tuples if s[0] != "__ALL__" and s[0] != "__ONLY_CHECK__"]
print(service_ids)
elif self.args.service_id == "all": elif self.args.service_id == "all":
service_ids = [s[0] for s in service_tuples if s[0] != "__ALL__" and s[0] != "__ONLY_CHECK__"] service_ids = [s[0] for s in service_tuples if s[0] != "__ALL__" and s[0] != "__ONLY_CHECK__"]