mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-31 18:02:48 -04:00
added back nil check for schema
Signed-off-by: James Humphries <james@james-humphries.co.uk>
This commit is contained in:
@@ -69,6 +69,9 @@ func (cp *contextPlugins) ResourceTypeSchema(ctx context.Context, providerAddr a
|
||||
}
|
||||
|
||||
schema, version := providerSchema.SchemaForResourceType(resourceMode, resourceType)
|
||||
if schema == nil {
|
||||
return nil, 0, diags
|
||||
}
|
||||
return schema.Block, version, diags
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user