diff --git a/services/tools/cli/portainer_host.py b/services/tools/cli/portainer_host.py index 711fd30..a370d60 100644 --- a/services/tools/cli/portainer_host.py +++ b/services/tools/cli/portainer_host.py @@ -76,7 +76,7 @@ class PortainerHost(BaseCLi): self.error('No "jwt" key in /auth response found.') return token - def list(self) -> List[PortainerStack]: + def list_stacks(self) -> List[PortainerStack]: response = self.api.get('/stacks') raw_stacks = response.json() return [classFromArgs(PortainerStack, stack) for stack in raw_stacks] diff --git a/services/tools/cli/portainer_stack.py b/services/tools/cli/portainer_stack.py index 627106a..c69ef81 100755 --- a/services/tools/cli/portainer_stack.py +++ b/services/tools/cli/portainer_stack.py @@ -69,7 +69,7 @@ class PortainerStackCLi(BaseCLi): def start(self): host = PortainerHost(PORTAINER_HOST_URLS[self.args.hostname]) - print(host.list()[0]) + print(host.list_stacks()[0]) def main():