Skip to content

Commit

Permalink
Fix invalid cast in analyzer_plugin.go
Browse files Browse the repository at this point in the history
Fixes #11140
  • Loading branch information
Frassle committed Oct 25, 2022
1 parent b3e41d0 commit 484d821
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
@@ -0,0 +1,4 @@
changes:
- type: fix
scope: engine
description: Fix an invalid cast in analyzer plugins.
3 changes: 2 additions & 1 deletion sdk/go/common/resource/plugin/analyzer_plugin.go
Expand Up @@ -615,7 +615,8 @@ func convertConfigSchema(schema *pulumirpc.PolicyConfigSchema) *AnalyzerPolicyCo

props := make(map[string]JSONSchema)
for k, v := range unmarshalMap(schema.GetProperties()) {
props[k] = v.(JSONSchema)
s := v.(map[string]interface{})
props[k] = JSONSchema(s)
}

return &AnalyzerPolicyConfigSchema{
Expand Down

0 comments on commit 484d821

Please sign in to comment.