Respect disableProviderPreview in providers. (#5612)

This commit is contained in:
Pat Gavlin 2020-10-22 13:25:05 -07:00 committed by GitHub
parent b75ca2602f
commit b516c8944f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -96,11 +96,12 @@ func NewProvider(host Host, ctx *Context, pkg tokens.Package, version *semver.Ve
contract.Assertf(plug != nil, "unexpected nil resource plugin for %s", pkg)
return &provider{
ctx: ctx,
pkg: pkg,
plug: plug,
clientRaw: pulumirpc.NewResourceProviderClient(plug.Conn),
cfgdone: make(chan bool),
ctx: ctx,
pkg: pkg,
plug: plug,
clientRaw: pulumirpc.NewResourceProviderClient(plug.Conn),
cfgdone: make(chan bool),
disableProviderPreview: disableProviderPreview,
}, nil
}