mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2026-01-29 04:49:44 +01:00
build
This commit is contained in:
4
port.py
4
port.py
@@ -930,7 +930,7 @@ class Portainer:
|
||||
print("?")
|
||||
elif resp['Status'] == "outdated":
|
||||
if pull:
|
||||
print("Recreate")
|
||||
#print("Recreate")
|
||||
self.recreate_container(service_id, pull)
|
||||
#print(f"Service {service_dict[service_id]:<{longest}} : updated")
|
||||
self.gotify_message(f"Service {service_dict[service_id]} updated")
|
||||
@@ -1094,7 +1094,7 @@ class Portainer:
|
||||
def recreate_container(self,service_id, pull=False):
|
||||
"""Restart a service on an endpoint."""
|
||||
path = f"/docker/{self.endpoint_id}/containers/{service_id}/recreate"
|
||||
print(path)
|
||||
# print(path)
|
||||
params={"pullImage": pull}
|
||||
try:
|
||||
resp = self._api_post(path, json=params, timeout=20)
|
||||
|
||||
Reference in New Issue
Block a user