I have a schema definition like this
"attribute_map": {
Type: schema.TypeMap,
Computed: true,
Description: "map of attributes",
},
and its implementation contains this code :
map := map[string]interface{}{
"flag": attMap.Flag,
}
d.Set("attribute_map", map)
Getting this error :
[ERROR] setting state: attribute_map.flag: '' expected type 'string', got unconvertible type 'bool', value: '0xc001734c17'