From aa9badc70c573bbcfbcacb12fe1d76d2cd91a83b Mon Sep 17 00:00:00 2001 From: Thibault bui Koechlin Date: Sun, 24 May 2020 12:41:45 +0200 Subject: [PATCH] reset stages --- pkg/parser/stage.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/parser/stage.go b/pkg/parser/stage.go index fad7535b0..4d27da883 100644 --- a/pkg/parser/stage.go +++ b/pkg/parser/stage.go @@ -40,6 +40,7 @@ type Stagefile struct { func LoadStages(stageFiles []Stagefile, pctx *UnixParserCtx) ([]Node, error) { var nodes []Node tmpstages := make(map[string]bool) + pctx.Stages = []string{} for _, stageFile := range stageFiles { if !strings.HasSuffix(stageFile.Filename, ".yaml") { @@ -118,7 +119,7 @@ func LoadStages(stageFiles []Stagefile, pctx *UnixParserCtx) ([]Node, error) { pctx.Stages = append(pctx.Stages, k) } sort.Strings(pctx.Stages) - log.Debugf("Stages loaded: %+v", pctx.Stages) + log.Infof("Stages loaded: %+v", pctx.Stages) return nodes, nil }