fix: empty groups
This commit is contained in:
parent
7e12c333b5
commit
fd47361268
|
@ -47,7 +47,7 @@ func generateStages(confStages []conf.ConfStage, groups []string) (
|
||||||
if s.Name == "" {
|
if s.Name == "" {
|
||||||
s.Name = fmt.Sprintf("stage-%d", i)
|
s.Name = fmt.Sprintf("stage-%d", i)
|
||||||
}
|
}
|
||||||
var ok bool
|
ok := false
|
||||||
if s.Group != "" {
|
if s.Group != "" {
|
||||||
for _, group := range groups {
|
for _, group := range groups {
|
||||||
if strings.EqualFold(group, s.Group) {
|
if strings.EqualFold(group, s.Group) {
|
||||||
|
@ -69,7 +69,7 @@ func generateStages(confStages []conf.ConfStage, groups []string) (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if !ok {
|
if !ok && len(groups) > 0 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
_, ok = existNames[s.Name] // check for existence
|
_, ok = existNames[s.Name] // check for existence
|
||||||
|
|
Loading…
Reference in New Issue
Block a user