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" { resource "test_instance" "foo" {
ami = "bar" ami = "bar"
# This is here because at some point it caused a test failure
network_interface { network_interface {
device_index = 0 device_index = 0
description = "Main network interface" description = "Main network interface"

View File

@ -11,6 +11,10 @@ import (
"github.com/hashicorp/terraform/config" "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 // PlanOpts are the options used to generate an execution plan for
// Terraform. // Terraform.
type PlanOpts struct { type PlanOpts struct {