Skip to content

Instantly share code, notes, and snippets.

@eerkunt
Created June 2, 2019 23:58
Show Gist options
  • Save eerkunt/7254e1346409304554d6da255e876620 to your computer and use it in GitHub Desktop.
Save eerkunt/7254e1346409304554d6da255e876620 to your computer and use it in GitHub Desktop.
panic: inconsistent set element types (cty.Object(map[string]cty.Type{"type":cty.String}) then cty.Object(map[string]cty.Type{"identifiers":cty.Set(cty.String), "type":cty.String}))
goroutine 1 [running]:
github.com/zclconf/go-cty/cty.SetVal(0xc00031ab00, 0x2, 0x2, 0x1, 0x2, 0xc00031ab00, 0x1)
/opt/gopath/pkg/mod/github.com/zclconf/[email protected]/cty/value_init.go:248 +0x5a0
github.com/hashicorp/terraform/command/jsonplan.omitUnknowns(0x2be99c0, 0xc000d8c890, 0x2730b20, 0xc000116860, 0xc000d8cbf0, 0x2be99c0, 0xc000d8c890, 0x2730b20)
/opt/gopath/src/github.com/hashicorp/terraform/command/jsonplan/plan.go:391 +0xc42
github.com/hashicorp/terraform/command/jsonplan.omitUnknowns(0x2be9980, 0xc0000be220, 0x24eed40, 0xc000a51590, 0xc000a51f50, 0x2be9980, 0xc0000be220, 0x24eed40)
/opt/gopath/src/github.com/hashicorp/terraform/command/jsonplan/plan.go:409 +0x26e
github.com/hashicorp/terraform/command/jsonplan.omitUnknowns(0x2be9900, 0xc000d8c8d0, 0x24357c0, 0xc0001168c0, 0xc000d8c970, 0x2be9900, 0xc000d8c8d0, 0x24357c0)
/opt/gopath/src/github.com/hashicorp/terraform/command/jsonplan/plan.go:374 +0x818
github.com/hashicorp/terraform/command/jsonplan.omitUnknowns(0x2be9980, 0xc0000be238, 0x24eed40, 0xc000a51770, 0x0, 0x0, 0xc0000d6b20, 0x12)
/opt/gopath/src/github.com/hashicorp/terraform/command/jsonplan/plan.go:409 +0x26e
github.com/hashicorp/terraform/command/jsonplan.marshalPlanResources(0xc00013f920, 0xc00045f180, 0x4, 0x4, 0xc00049e660, 0x140, 0x26c7ea0, 0x1014f01, 0x4201200, 0xc000999188)
/opt/gopath/src/github.com/hashicorp/terraform/command/jsonplan/values.go:181 +0x63b
github.com/hashicorp/terraform/command/jsonplan.marshalPlanModules(0xc00013f920, 0xc00049e660, 0xc000c6a150, 0x2, 0x2, 0xc000999360, 0xc000999390, 0x0, 0x0, 0x0, ...)
/opt/gopath/src/github.com/hashicorp/terraform/command/jsonplan/values.go:216 +0x1b4
github.com/hashicorp/terraform/command/jsonplan.marshalPlannedValues(0xc00013f920, 0xc00049e660, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/opt/gopath/src/github.com/hashicorp/terraform/command/jsonplan/values.go:120 +0x684
github.com/hashicorp/terraform/command/jsonplan.(*plan).marshalPlannedValues(0xc0000240c0, 0xc00013f920, 0xc00049e660, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/command/jsonplan/plan.go:336 +0x4d
github.com/hashicorp/terraform/command/jsonplan.Marshal(0xc0000a52b0, 0xc0002cc4d0, 0xc00013fe00, 0xc00049e660, 0xc0005a0480, 0x1, 0x0, 0x0, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/command/jsonplan/plan.go:109 +0x20b
github.com/hashicorp/terraform/command.(*ShowCommand).Run(0xc000556c00, 0xc0000a60a0, 0x2, 0x2, 0xc0000c7aa0)
/opt/gopath/src/github.com/hashicorp/terraform/command/show.go:167 +0xa58
github.com/mitchellh/cli.(*CLI).Run(0xc0002d0280, 0xc0002d0280, 0xc000547d90, 0x1)
/opt/gopath/pkg/mod/github.com/mitchellh/[email protected]/cli.go:255 +0x1f1
main.wrappedMain(0x0)
/opt/gopath/src/github.com/hashicorp/terraform/main.go:223 +0xaff
main.realMain(0x0)
/opt/gopath/src/github.com/hashicorp/terraform/main.go:100 +0xb4
main.main()
/opt/gopath/src/github.com/hashicorp/terraform/main.go:36 +0x3b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment