diff --git a/eval/eval.go b/eval/eval.go index 5a54f70f..a98236eb 100644 --- a/eval/eval.go +++ b/eval/eval.go @@ -363,8 +363,11 @@ func (ec *EvalCtx) ResolveVar(ns, name string) Variable { } return sharedVariable{ec.Store, name} default: - use(ec, ns, nil) - return ec.Modules[ns][name] + if ns, ok := ec.Modules[ns]; ok { + return ns[name] + } else { + return nil + } } }