mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2025-12-14 02:34:53 +01:00
build
This commit is contained in:
4
port.py
4
port.py
@@ -858,13 +858,11 @@ class Portainer:
|
||||
self._resolve_endpoint(endpoint_id)
|
||||
endpoint_id = self.endpoint_id
|
||||
|
||||
|
||||
|
||||
|
||||
if stack == "all":
|
||||
return self._delete_all_stacks(endpoint_id)
|
||||
else:
|
||||
for s in stack:
|
||||
print(f" >> Deleting stack {s} from endpoint {self.endpoint_name}")
|
||||
stack_id = self._resolve_stack_id(s, endpoint_id)
|
||||
self._delete_single_stack(stack_id, endpoint_id)
|
||||
return "Done"
|
||||
|
||||
Reference in New Issue
Block a user