reset stages
This commit is contained in:
parent
d601e21afb
commit
aa9badc70c
|
@ -40,6 +40,7 @@ type Stagefile struct {
|
||||||
func LoadStages(stageFiles []Stagefile, pctx *UnixParserCtx) ([]Node, error) {
|
func LoadStages(stageFiles []Stagefile, pctx *UnixParserCtx) ([]Node, error) {
|
||||||
var nodes []Node
|
var nodes []Node
|
||||||
tmpstages := make(map[string]bool)
|
tmpstages := make(map[string]bool)
|
||||||
|
pctx.Stages = []string{}
|
||||||
|
|
||||||
for _, stageFile := range stageFiles {
|
for _, stageFile := range stageFiles {
|
||||||
if !strings.HasSuffix(stageFile.Filename, ".yaml") {
|
if !strings.HasSuffix(stageFile.Filename, ".yaml") {
|
||||||
|
@ -118,7 +119,7 @@ func LoadStages(stageFiles []Stagefile, pctx *UnixParserCtx) ([]Node, error) {
|
||||||
pctx.Stages = append(pctx.Stages, k)
|
pctx.Stages = append(pctx.Stages, k)
|
||||||
}
|
}
|
||||||
sort.Strings(pctx.Stages)
|
sort.Strings(pctx.Stages)
|
||||||
log.Debugf("Stages loaded: %+v", pctx.Stages)
|
log.Infof("Stages loaded: %+v", pctx.Stages)
|
||||||
return nodes, nil
|
return nodes, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue