mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2025-12-14 10:44:52 +01:00
Compare commits
2 Commits
265eb7bf62
...
b65680be59
| Author | SHA1 | Date | |
|---|---|---|---|
| b65680be59 | |||
|
|
a62f26e432 |
8
port.py
8
port.py
@@ -576,9 +576,9 @@ class Portainer:
|
||||
print(f"Error stoping stack: {e}")
|
||||
return []
|
||||
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:
|
||||
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
|
||||
def stop_stack(self,stack,endpoint_id):
|
||||
print(f"Stopping stack {stack}")
|
||||
@@ -599,9 +599,9 @@ class Portainer:
|
||||
print(f"Error stoping stack: {e}")
|
||||
return []
|
||||
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:
|
||||
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
|
||||
|
||||
def delete_stack(self, endpoint_id=None, stack=None, timeout=None):
|
||||
|
||||
3
requirements.txt
Normal file
3
requirements.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
requests
|
||||
gitpython
|
||||
tabulate
|
||||
Reference in New Issue
Block a user