improve lookup when no pipeline name

This commit is contained in:
Brad Rydzewski
2019-11-08 11:24:38 -08:00
parent 18d8f53fa8
commit e699edd0e1
2 changed files with 9 additions and 2 deletions

View File

@@ -25,5 +25,7 @@ func Lookup(name string, manifest *manifest.Manifest) (*Pipeline, error) {
// helper function returns true if the name matches.
func isNameMatch(a, b string) bool {
return a == b || (a == "" && b == "default")
return a == b ||
(a == "" && b == "default") ||
(b == "" && a == "default")
}