Skip to content

Commit

Permalink
parser: change MapVal to ObjectVal
Browse files Browse the repository at this point in the history
  • Loading branch information
dobarx committed Apr 3, 2024
1 parent 48df184 commit f7fadef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/definedBlocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func PluginMapToCty[V definitions.FabricBlock](plugins map[definitions.Key]V) (c
func (db *DefinedBlocks) AsValueMap() map[string]cty.Value {
content, data := PluginMapToCty(db.Plugins)
cfgContent, cfgData := PluginMapToCty(db.Config)
config := cty.MapVal(map[string]cty.Value{
config := cty.ObjectVal(map[string]cty.Value{
definitions.BlockKindContent: cfgContent,
definitions.BlockKindData: cfgData,
})
Expand Down

0 comments on commit f7fadef

Please sign in to comment.