Fix broken build on master
@@ -8,17 +8,21 @@ import (
)
func (b *Backend) Down(ctx context.Context, options compose.ProjectOptions) error {
+ name := options.Name
+ if name == "" {
project, err := compose.ProjectFromOptions(&options)
if err != nil {
return err
}
+ name = project.Name
+ }
- err = b.api.DeleteStack(ctx, project.Name)
+ err := b.api.DeleteStack(ctx, name)
if err != nil {
return err
}
- err = b.WaitStackCompletion(ctx, project.Name, types.StackDelete)
+ err = b.WaitStackCompletion(ctx, name, types.StackDelete)
if err != nil {
return err
}
