Skip to content

Commit

Permalink
fix labels in destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
networkop committed Jul 5, 2021
1 parent 433a87b commit c190f28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/destroy.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ var destroyCmd = &cobra.Command{
return err
}
// list all containerlab containers
labels := []*types.GenericFilter{{FilterType: "label", Match: c.Config.Name, Field: "containerlab", Operator: "="}}
labels := []*types.GenericFilter{{FilterType: "label", Match: c.Config.Name, Field: "containerlab", Operator: "exists"}}
containers, err := c.ListContainers(ctx, labels)
if err != nil {
return err
Expand Down

0 comments on commit c190f28

Please sign in to comment.