fix broken test - check build/repo object is not nil
This commit is contained in:
parent
cfa3a20395
commit
460df004a7
1 changed files with 6 additions and 2 deletions
|
@ -21,8 +21,12 @@ func Parse(req *core.ConvertArgs, template *core.Template, templateData map[stri
|
|||
vm.ErrorFormatter.SetMaxStackTraceSize(20)
|
||||
|
||||
//map build/repo parameters
|
||||
mapBuild(req.Build, vm)
|
||||
mapRepo(req.Repo, vm)
|
||||
if req.Build != nil {
|
||||
mapBuild(req.Build, vm)
|
||||
}
|
||||
if req.Repo != nil {
|
||||
mapRepo(req.Repo, vm)
|
||||
}
|
||||
|
||||
var jsonnetFile string
|
||||
var jsonentFileName string
|
||||
|
|
Loading…
Reference in a new issue