From 5384f63b3dd0c8692f5468fa31d00090c2f4882d Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 25 Jun 2014 18:33:32 -0700 Subject: [PATCH] terraform: set type on apply --- terraform/terraform.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/terraform/terraform.go b/terraform/terraform.go index c93145a4e1..8d26bd9ea7 100644 --- a/terraform/terraform.go +++ b/terraform/terraform.go @@ -170,6 +170,9 @@ func (t *Terraform) applyWalkFn( return nil, err } + // Force the resource state type to be our type + rs.Type = r.State.Type + // If no state was returned, then no variables were updated so // just return. if rs == nil {