mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2026-01-29 04:49:44 +01:00
Compare commits
2 Commits
fd1fcf90a4
...
bb8ef3bdb8
| Author | SHA1 | Date | |
|---|---|---|---|
| bb8ef3bdb8 | |||
| 99aa451620 |
@@ -868,7 +868,6 @@ class PortainerApi:
|
|||||||
headers = ["StackID", "Name", "Endpoint"]
|
headers = ["StackID", "Name", "Endpoint"]
|
||||||
print(tabulate.tabulate(data, headers=headers, tablefmt="github"))
|
print(tabulate.tabulate(data, headers=headers, tablefmt="github"))
|
||||||
print(f"Total stacks: {count}")
|
print(f"Total stacks: {count}")
|
||||||
input("Continue...")
|
|
||||||
# print(sorted(stack_names))
|
# print(sorted(stack_names))
|
||||||
|
|
||||||
def update_containers(self):
|
def update_containers(self):
|
||||||
@@ -1104,7 +1103,7 @@ class PortainerApi:
|
|||||||
# print(path)
|
# print(path)
|
||||||
params={"pullImage": pull}
|
params={"pullImage": pull}
|
||||||
try:
|
try:
|
||||||
resp = self._api_post(path, json=params, timeout=20)
|
resp = self._api_post(path, json=params, timeout=120)
|
||||||
#print(resp)
|
#print(resp)
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
print(f"Error restarting service: {e}")
|
print(f"Error restarting service: {e}")
|
||||||
|
|||||||
Reference in New Issue
Block a user