added back nil check for schema

Signed-off-by: James Humphries <james@james-humphries.co.uk>
This commit is contained in:
James Humphries
2026-03-30 16:20:13 +01:00
parent f410110c7c
commit 8b0ff2edc7

View File

@@ -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
}