portainer: list -> list_stacks

This commit is contained in:
tylen 2025-03-04 22:52:30 +00:00
parent 6d81e48b47
commit b9dac2daaa
2 changed files with 2 additions and 2 deletions

View File

@ -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]

View File

@ -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():