From c493d60358b7c82b9ade25a0e8864c6c986ee077 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 2 Jul 2014 11:28:23 -0700 Subject: [PATCH] terraform: register gob type that might be in config --- command/test-fixtures/plan/main.tf | 1 + terraform/plan.go | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/command/test-fixtures/plan/main.tf b/command/test-fixtures/plan/main.tf index 1ae939048..93c28b253 100644 --- a/command/test-fixtures/plan/main.tf +++ b/command/test-fixtures/plan/main.tf @@ -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" diff --git a/terraform/plan.go b/terraform/plan.go index 3cabf97a2..13f468e3d 100644 --- a/terraform/plan.go +++ b/terraform/plan.go @@ -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 {