Skip to content

Commit

Permalink
Fix stack list processing.
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Rule <[email protected]>
  • Loading branch information
timrulebosch authored Oct 23, 2024
1 parent 406f3fa commit 2cb40ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extra/tools/simer/internal/app/simer/simer.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func SimbusCommand(docMap map[string][]kind.KindDoc, simbusPath string, flags Fl
slog.Debug(fmt.Sprintf(" %s", stackDoc.Metadata.Name))
// All or only some stacks?
if flags.Stack != "" {
if slices.Contains(flags.StackList, stackDoc.Metadata.Name) {
if !slices.Contains(flags.StackList, stackDoc.Metadata.Name) {
continue
}
}
Expand Down Expand Up @@ -164,7 +164,7 @@ func ModelCommandList(docMap map[string][]kind.KindDoc, modelcPath string, model
slog.Debug(fmt.Sprintf(" %s", stackDoc.Metadata.Name))
// All or only some stacks?
if flags.Stack != "" {
if slices.Contains(flags.StackList, stackDoc.Metadata.Name) {
if !slices.Contains(flags.StackList, stackDoc.Metadata.Name) {
continue // Next stack.
}
}
Expand Down

0 comments on commit 2cb40ea

Please sign in to comment.