Skip to content

Commit 7ab44aa

Browse files
committed
err check var injection
1 parent de82a09 commit 7ab44aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/jsonnet/builder.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ func NewBuilder(konfig *konfigurationv1.Konfiguration, workdir, cacheDir string)
9999

100100
// Inject any variables into the VM
101101
if vars := konfig.GetVariables(); vars != nil {
102-
vars.InjectIntoVM(b.vm)
102+
if err := vars.InjectIntoVM(b.vm); err != nil {
103+
return nil, err
104+
}
103105
}
104106

105107
}

0 commit comments

Comments
 (0)