From f7fadef474f70ae7cc79ff24a2375f0eb2ceb9b1 Mon Sep 17 00:00:00 2001 From: dobarx Date: Wed, 3 Apr 2024 14:24:02 +0300 Subject: [PATCH] parser: change MapVal to ObjectVal --- parser/definedBlocks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/definedBlocks.go b/parser/definedBlocks.go index 4ddf8dc8..c16e1f04 100644 --- a/parser/definedBlocks.go +++ b/parser/definedBlocks.go @@ -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, })