func getActions()

in terraform/plan-test/lib.go [59:71]


func getActions(resourceChanges map[string]*tfjson.ResourceChange) map[string][]string {
	actions := map[string][]string{}
	for _, resource := range resourceChanges {
		action := getActionType(&resource.Change.Actions)
		if _, ok := actions[action]; ok {
			actions[action] = append(actions[action], resource.Address)
		} else {
			actions[action] = []string{resource.Address}
		}
	}

	return actions
}