terraform: register gob type that might be in config

This commit is contained in:
Mitchell Hashimoto 2014-07-02 11:28:23 -07:00
parent 1560d5ab98
commit c493d60358
2 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,7 @@
resource "test_instance" "foo" {
ami = "bar"
# This is here because at some point it caused a test failure
network_interface {
device_index = 0
description = "Main network interface"

View File

@ -11,6 +11,10 @@ import (
"github.com/hashicorp/terraform/config"
)
func init() {
gob.Register(make([]map[string]interface{}, 0))
}
// PlanOpts are the options used to generate an execution plan for
// Terraform.
type PlanOpts struct {