mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2026-03-15 07:09:59 +01:00
build
This commit is contained in:
14
port.py
14
port.py
@@ -971,6 +971,12 @@ class Portainer:
|
|||||||
values=service_tuples
|
values=service_tuples
|
||||||
).run()
|
).run()
|
||||||
print(service_tuples)
|
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":
|
elif self.args.service_id == "all":
|
||||||
service_ids = [s[0] for s in service_tuples if s[0] != "__ALL__"]
|
service_ids = [s[0] for s in service_tuples if s[0] != "__ALL__"]
|
||||||
else:
|
else:
|
||||||
@@ -980,18 +986,12 @@ class Portainer:
|
|||||||
input()
|
input()
|
||||||
|
|
||||||
if self.args.update is False:
|
if self.args.update is False:
|
||||||
if "__ONLY_CHECK__" in service_ids:
|
|
||||||
service_ids.remove("__ONLY_CHECK__")
|
|
||||||
pull = False
|
pull = False
|
||||||
print("Checking for updates only...")
|
print("Checking for updates only...")
|
||||||
else:
|
|
||||||
pull = True
|
|
||||||
print("Checking for updates and pulling updates 2...")
|
|
||||||
else:
|
else:
|
||||||
pull = True
|
pull = True
|
||||||
print("Checking for updates and pulling updates...")
|
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
|
longest = 0
|
||||||
for a in service_dict.items():
|
for a in service_dict.items():
|
||||||
|
|||||||
Reference in New Issue
Block a user