mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2025-12-14 10:44:52 +01:00
build
This commit is contained in:
8
port.py
8
port.py
@@ -576,9 +576,9 @@ class Portainer:
|
|||||||
print(f"Error stoping stack: {e}")
|
print(f"Error stoping stack: {e}")
|
||||||
return []
|
return []
|
||||||
if "Id" in json.loads(resp):
|
if "Id" in json.loads(resp):
|
||||||
print(f"Stack {self.stacks_all[self.endpoint_id]["by_id"][stack]} : started")
|
print(f"Stack {self.stacks_all[self.endpoint_id]['by_id'][stack]} : started")
|
||||||
else:
|
else:
|
||||||
print(f"Stack {self.stacks_all[self.endpoint_id]["by_id"][stack]} : {json.loads(resp)['message']}")
|
print(f"Stack {self.stacks_all[self.endpoint_id]['by_id'][stack]} : {json.loads(resp)['message']}")
|
||||||
return True
|
return True
|
||||||
def stop_stack(self,stack,endpoint_id):
|
def stop_stack(self,stack,endpoint_id):
|
||||||
print(f"Stopping stack {stack}")
|
print(f"Stopping stack {stack}")
|
||||||
@@ -599,9 +599,9 @@ class Portainer:
|
|||||||
print(f"Error stoping stack: {e}")
|
print(f"Error stoping stack: {e}")
|
||||||
return []
|
return []
|
||||||
if "Id" in json.loads(resp):
|
if "Id" in json.loads(resp):
|
||||||
print(f"Stack {self.stacks_all[self.endpoint_id]["by_id"][stack]} : stopped")
|
print(f"Stack {self.stacks_all[self.endpoint_id]['by_id'][stack]} : stopped")
|
||||||
else:
|
else:
|
||||||
print(f"Stack {self.stacks_all[self.endpoint_id]["by_id"][stack]} : {json.loads(resp)['message']}")
|
print(f"Stack {self.stacks_all[self.endpoint_id]['by_id'][stack]} : {json.loads(resp)['message']}")
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def delete_stack(self, endpoint_id=None, stack=None, timeout=None):
|
def delete_stack(self, endpoint_id=None, stack=None, timeout=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user