Skip to content

Instantly share code, notes, and snippets.

@liamjbennett
Created October 12, 2016 14:03
Show Gist options
  • Save liamjbennett/21a67fe4d260c485767307ca419ef292 to your computer and use it in GitHub Desktop.
Save liamjbennett/21a67fe4d260c485767307ca419ef292 to your computer and use it in GitHub Desktop.
panic: interface conversion: interface is []*terraform.InstanceState, not reflect.StructField
goroutine 1618 [running]:
panic(0x291fec0, 0xc4204edcc0)
/opt/go/src/runtime/panic.go:500 +0x1a1
github.com/hashicorp/terraform/vendor/github.com/mitchellh/copystructure.(*walker).Exit(0xc420798120, 0x7, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/copystructure/copystructure.go:196 +0x747
github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk.walkStruct(0x2c7ebe0, 0xc4204a4ea0, 0x199, 0x2d8c700, 0xc420798120, 0x101, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk/reflectwalk.go:330 +0x40c
github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk.walk(0x2c77240, 0xc4204a4ea0, 0x16, 0x2d8c700, 0xc420798120, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk/reflectwalk.go:180 +0x4b2
github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk.walkMap(0x286d6e0, 0xc4205312e0, 0x195, 0x2d8c700, 0xc420798120, 0x7f2a7aada200, 0xc420798140)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk/reflectwalk.go:222 +0x381
github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk.walk(0x286d6e0, 0xc4205312e0, 0x195, 0x2d8c700, 0xc420798120, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk/reflectwalk.go:174 +0x3f3
github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk.walkStruct(0x2c31900, 0xc4205312c0, 0x199, 0x2d8c700, 0xc420798120, 0x101, 0x10)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk/reflectwalk.go:324 +0x3ad
github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk.walk(0x2cb7780, 0xc4205312c0, 0x16, 0x2d8c700, 0xc420798120, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk/reflectwalk.go:180 +0x4b2
github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk.Walk(0x2cb7780, 0xc4205312c0, 0x2d8c700, 0xc420798120, 0x16, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk/reflectwalk.go:84 +0x155
github.com/hashicorp/terraform/vendor/github.com/mitchellh/copystructure.Config.Copy(0x1, 0x0, 0x2cb7780, 0xc4205312c0, 0x0, 0x0, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/copystructure/copystructure.go:69 +0x81
github.com/hashicorp/terraform/terraform.(*ModuleState).deepcopy(0xc4205312c0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/state.go:1045 +0x5b
github.com/hashicorp/terraform/terraform.(*ModuleState).View(0xc4205312c0, 0xc42042e900, 0x1f, 0x1)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/state.go:1005 +0x49
github.com/hashicorp/terraform/terraform.(*OrphanTransformer).Transform(0xc42042e920, 0xc42073ede0, 0xc420727b70, 0x2)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/transform_orphan.go:61 +0x9cd
github.com/hashicorp/terraform/terraform.(*BasicGraphBuilder).Build(0xc420727c48, 0x4513ac0, 0x1, 0x1, 0x0, 0x5, 0x18b50b9800467308)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/graph_builder.go:29 +0xfd
github.com/hashicorp/terraform/terraform.(*GraphNodeConfigResource).DynamicExpand(0xc420530050, 0x4500a80, 0xc420210d00, 0x0, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/graph_config_node_resource.go:192 +0x3ad
github.com/hashicorp/terraform/terraform.(*Graph).walk.func1(0x2d9ed00, 0xc420530050, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/terraform/graph.go:210 +0x7a2
github.com/hashicorp/terraform/dag.(*AcyclicGraph).Walk.func3(0xc420840aa0, 0xc4206b7840, 0xc420840ab0, 0xc4209e9140, 0xc420840ac0, 0x2d9ed00, 0xc420530050, 0xc4208ae9c0, 0xc420941440)
/opt/gopath/src/github.com/hashicorp/terraform/dag/dag.go:238 +0x251
created by github.com/hashicorp/terraform/dag.(*AcyclicGraph).Walk
/opt/gopath/src/github.com/hashicorp/terraform/dag/dag.go:247 +0x618
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment