Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Panic when opc_compute_vnic_set applied_acls contains empty value #154

Open
scross01 opened this issue Aug 30, 2018 · 0 comments
Open

Panic when opc_compute_vnic_set applied_acls contains empty value #154

scross01 opened this issue Aug 30, 2018 · 0 comments
Assignees

Comments

@scross01
Copy link
Contributor

Terraform Version

Terraform v0.11.8

Affected Resource(s)

  • opc_vnic_set

Terraform Configuration Files

resource "opc_compute_vnic_set" "default" {
  name         = "${local.project}-default-vnic-set"
  applied_acls = ["${opc_compute_acl.default.name}", ""]
}

Note the "" in the applied_acls list

Debug Output

https://gist.github.com/scross01/e8ea184b6d74dd95016f5d7997089544 console.log

Panic Output

https://gist.github.com/scross01/e8ea184b6d74dd95016f5d7997089544 crash.log

panic: interface conversion: interface {} is nil, not string
2018-08-29T21:19:42.264-0400 [DEBUG] plugin.terraform-provider-opc: 
2018-08-29T21:19:42.264-0400 [DEBUG] plugin.terraform-provider-opc: goroutine 161 [running]:
2018-08-29T21:19:42.264-0400 [DEBUG] plugin.terraform-provider-opc: github.com/terraform-providers/terraform-provider-opc/opc.getStringList(0xc4202cd030, 0x184bd91, 0xc, 0x1723980, 0x1d3cae0, 0x0)
2018-08-29T21:19:42.264-0400 [DEBUG] plugin.terraform-provider-opc: 	/tmp/go/src/github.com/terraform-providers/terraform-provider-opc/opc/helpers.go:21 +0x21e
2018-08-29T21:19:42.264-0400 [DEBUG] plugin.terraform-provider-opc: github.com/terraform-providers/terraform-provider-opc/opc.resourceOPCVNICSetUpdate(0xc4202cd030, 0x175b5c0, 0xc4203ef220, 0x24, 0x1d3cae0)
2018-08-29T21:19:42.264-0400 [DEBUG] plugin.terraform-provider-opc: 	/tmp/go/src/github.com/terraform-providers/terraform-provider-opc/opc/resource_vnic_set.go:140 +0x1f0
2018-08-29T21:19:42.264-0400 [DEBUG] plugin.terraform-provider-opc: github.com/terraform-providers/terraform-provider-opc/vendor/github.com/hashicorp/terraform/helper/schema.(*Resource).Apply(0xc4205eb140, 0xc420466960, 0xc42041bba0, 0x175b5c0, 0xc4203ef220, 0x1, 0xc4202054d0, 0xc4202054d0)
2018-08-29T21:19:42.264-0400 [DEBUG] plugin.terraform-provider-opc: 	/tmp/go/src/github.com/terraform-providers/terraform-provider-opc/vendor/github.com/hashicorp/terraform/helper/schema/resource.go:199 +0x2ab
2018-08-29T21:19:42.264-0400 [DEBUG] plugin.terraform-provider-opc: github.com/terraform-providers/terraform-provider-opc/vendor/github.com/hashicorp/terraform/helper/schema.(*Provider).Apply(0xc420202bd0, 0xc420466910, 0xc420466960, 0xc42041bba0, 0x1f67458, 0x0, 0x18)
2018-08-29T21:19:42.264-0400 [DEBUG] plugin.terraform-provider-opc: 	/tmp/go/src/github.com/terraform-providers/terraform-provider-opc/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:259 +0xa4
2018-08-29T21:19:42.264-0400 [DEBUG] plugin.terraform-provider-opc: github.com/terraform-providers/terraform-provider-opc/vendor/github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).Apply(0xc420440fa0, 0xc42041bb40, 0xc4203e2ca0, 0x0, 0x0)
2018-08-29T21:19:42.264-0400 [DEBUG] plugin.terraform-provider-opc: 	/tmp/go/src/github.com/terraform-providers/terraform-provider-opc/vendor/github.com/hashicorp/terraform/plugin/resource_provider.go:488 +0x57
2018-08-29T21:19:42.264-0400 [DEBUG] plugin.terraform-provider-opc: reflect.Value.call(0xc42028fda0, 0xc420092738, 0x13, 0x1844d9a, 0x4, 0xc4202d8f20, 0x3, 0x3, 0x5, 0x1850e7a, ...)
2018-08-29T21:19:42.264-0400 [DEBUG] plugin.terraform-provider-opc: 	/usr/local/Cellar/go@1.9/1.9.7/libexec/src/reflect/value.go:434 +0x905
2018-08-29T21:19:42.264-0400 [DEBUG] plugin.terraform-provider-opc: reflect.Value.Call(0xc42028fda0, 0xc420092738, 0x13, 0xc4205c3f20, 0x3, 0x3, 0x1723980, 0x18f33f0, 0x1723980)
2018-08-29T21:19:42.264-0400 [DEBUG] plugin.terraform-provider-opc: 	/usr/local/Cellar/go@1.9/1.9.7/libexec/src/reflect/value.go:302 +0xa4
2018-08-29T21:19:42.264-0400 [DEBUG] plugin.terraform-provider-opc: net/rpc.(*service).call(0xc420612a00, 0xc4203fc140, 0xc42040a218, 0xc4205a6080, 0xc4203ef780, 0x1704780, 0xc42041bb40, 0x16, 0x17047c0, 0xc4203e2ca0, ...)
2018-08-29T21:19:42.264-0400 [DEBUG] plugin.terraform-provider-opc: 	/usr/local/Cellar/go@1.9/1.9.7/libexec/src/net/rpc/server.go:381 +0x142
2018-08-29T21:19:42.264-0400 [DEBUG] plugin.terraform-provider-opc: created by net/rpc.(*Server).ServeCodec
2018-08-29T21:19:42.264-0400 [DEBUG] plugin.terraform-provider-opc: 	/usr/local/Cellar/go@1.9/1.9.7/libexec/src/net/rpc/server.go:475 +0x36b

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply
@scross01 scross01 added the crash label Aug 30, 2018
@ghost ghost added bug crash labels Aug 30, 2018
@mbfrahry mbfrahry self-assigned this Sep 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants