mirror of
https://github.com/Hopiu/portainer-cli.git
synced 2026-03-23 09:20:23 +00:00
Try to fix plac call
This commit is contained in:
parent
4e85c56f34
commit
cd2f6e3589
1 changed files with 2 additions and 2 deletions
|
|
@ -271,9 +271,9 @@ class PortainerCLI(object):
|
|||
return env
|
||||
|
||||
def create_or_update_stack(self, *args):
|
||||
stack_id = plac.call(self.get_stack_id)
|
||||
stack_id = plac.call(self.get_stack_id, args)
|
||||
if stack_id == -1:
|
||||
plac.call(self.create_stack)
|
||||
plac.call(self.create_stack, args)
|
||||
else:
|
||||
plac.call(self.update_stack, args.extend(['-s', stack_id]))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue