internal/grpcwrap: Ensure GetProviderSchemaOptional server capability is passed through (#33742)

Reference: 7094517089/internal/grpcwrap/provider6.go (L72)

The server capability is passed through with version 6, but not version 5.
pull/33746/head
Brian Flad 3 years ago committed by GitHub
parent 7094517089
commit a7e3339e2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -69,7 +69,8 @@ func (p *provider) GetSchema(_ context.Context, req *tfplugin5.GetProviderSchema
}
resp.ServerCapabilities = &tfplugin5.ServerCapabilities{
PlanDestroy: p.schema.ServerCapabilities.PlanDestroy,
GetProviderSchemaOptional: p.schema.ServerCapabilities.GetProviderSchemaOptional,
PlanDestroy: p.schema.ServerCapabilities.PlanDestroy,
}
// include any diagnostics from the original GetSchema call

Loading…
Cancel
Save