fix(stacks): pass WorkingDir to deployer command EE-5142 (#8624)

pull/8633/head
matias-portainer 2023-03-08 19:34:50 -03:00 committed by GitHub
parent 89194405ee
commit 69f14e569b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -82,9 +82,11 @@ func (manager *ComposeStackManager) Down(ctx context.Context, stack *portainer.S
}
err = manager.deployer.Remove(ctx, stack.Name, nil, libstack.Options{
WorkingDir: stack.ProjectPath,
EnvFilePath: envFilePath,
Host: url,
})
return errors.Wrap(err, "failed to remove a stack")
}