Skip to content

Commit

Permalink
Merge pull request #91 from jlestrada/jlestrada/data_array_fix
Browse files Browse the repository at this point in the history
fix(): fix data array runtime error
  • Loading branch information
im2nguyen authored Feb 3, 2022
2 parents 9e14bbf + 1ec9628 commit 28b7dc7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rso.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,11 @@ func (r *rover) PopulateModuleState(rso *ResourcesOverview, module *tfjson.State
if _, ok := rs[parent]; !ok {
rs[parent] = &StateOverview{}
rs[parent].Children = make(map[string]*StateOverview)
rs[parent].Type = ResourceTypeResource
if rst.Mode == "data" {
rs[parent].Type = ResourceTypeData
} else {
rs[parent].Type = ResourceTypeResource
}

}

Expand Down

0 comments on commit 28b7dc7

Please sign in to comment.