it is valid to have no provider config

This commit is contained in:
James Bardin 2018-05-24 14:16:00 -04:00 committed by Martin Atkins
parent fe105bfc3f
commit 672221e38e
1 changed files with 0 additions and 3 deletions

View File

@ -38,9 +38,6 @@ func (n *EvalConfigProvider) Eval(ctx EvalContext) (interface{}, error) {
if n.Provider == nil { if n.Provider == nil {
return nil, fmt.Errorf("EvalConfigProvider Provider is nil") return nil, fmt.Errorf("EvalConfigProvider Provider is nil")
} }
if n.Config == nil {
return nil, nil
}
var diags tfdiags.Diagnostics var diags tfdiags.Diagnostics
provider := *n.Provider provider := *n.Provider