mirror of
https://github.com/Hopiu/portainer-cli.git
synced 2026-04-29 02:44:41 +00:00
Try to fix plac call
This commit is contained in:
parent
b405cffb3e
commit
4e85c56f34
1 changed files with 3 additions and 3 deletions
|
|
@ -271,11 +271,11 @@ class PortainerCLI(object):
|
|||
return env
|
||||
|
||||
def create_or_update_stack(self, *args):
|
||||
stack_id = plac.call(self.get_stack_id, *args)
|
||||
stack_id = plac.call(self.get_stack_id)
|
||||
if stack_id == -1:
|
||||
plac.call(self.create_stack, *args)
|
||||
plac.call(self.create_stack)
|
||||
else:
|
||||
plac.call(self.update_stack, '-s', stack_id, *args)
|
||||
plac.call(self.update_stack, args.extend(['-s', stack_id]))
|
||||
|
||||
@plac.annotations(
|
||||
stack_name=('Stack name', 'option', 'n'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue