mirror of
https://github.com/Hopiu/portainer-cli.git
synced 2026-04-29 02:44:41 +00:00
Fix update stack
This commit is contained in:
parent
2f2bd1f2da
commit
159a2f72da
1 changed files with 4 additions and 0 deletions
|
|
@ -399,6 +399,10 @@ class PortainerCLI(object):
|
|||
def update_stack(self, stack_id, endpoint_id, stack_file='', env_file='',
|
||||
prune=False, clear_env=False, *args):
|
||||
logger.info('Updating stack id={}'.format(stack_id))
|
||||
stack_url = 'stacks/{}?endpointId={}'.format(
|
||||
stack_id,
|
||||
endpoint_id,
|
||||
)
|
||||
current = self.get_stack_by_id(stack_id, endpoint_id)
|
||||
stack_file_content = ''
|
||||
if stack_file:
|
||||
|
|
|
|||
Loading…
Reference in a new issue