terraform: set type on apply

This commit is contained in:
Mitchell Hashimoto 2014-06-25 18:33:32 -07:00
parent 84a645712b
commit 5384f63b3d
1 changed files with 3 additions and 0 deletions

View File

@ -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 {