This commit is contained in:
2025-12-16 23:41:19 +01:00
parent c0682d478d
commit 8f207f2fad

18
port.py
View File

@@ -971,6 +971,12 @@ class Portainer:
values=service_tuples
).run()
print(service_tuples)
if "__ALL__" in service_ids:
service_ids = [s[0] for s in service_tuples if s[0] != "__ALL__"]
if "__ONLY_CHECK__" in service_ids:
service_ids.remove("__ONLY_CHECK__")
self.args.update = False
elif self.args.service_id == "all":
service_ids = [s[0] for s in service_tuples if s[0] != "__ALL__"]
else:
@@ -980,18 +986,12 @@ class Portainer:
input()
if self.args.update is False:
if "__ONLY_CHECK__" in service_ids:
service_ids.remove("__ONLY_CHECK__")
pull = False
print("Checking for updates only...")
else:
pull = True
print("Checking for updates and pulling updates 2...")
pull = False
print("Checking for updates only...")
else:
pull = True
print("Checking for updates and pulling updates...")
if "__ALL__" in service_ids:
service_ids = [s[0] for s in service_tuples if s[0] != "__ALL__" and s[0] != "__ONLY_CHECK__"]
longest = 0
for a in service_dict.items():