helper/diff: handle unknownvariablevalue

This commit is contained in:
Mitchell Hashimoto 2016-11-08 23:06:12 -08:00
parent 29485f6167
commit 59bd1a22f4
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ package diff
import (
"strings"
"github.com/hashicorp/terraform/config"
"github.com/hashicorp/terraform/flatmap"
"github.com/hashicorp/terraform/terraform"
)
@ -94,7 +95,7 @@ func (b *ResourceBuilder) Diff(
// If this key is in the cleaned config, then use that value
// because it'll have its variables properly interpolated
if cleanV, ok := flatConfig[k]; ok {
if cleanV, ok := flatConfig[k]; ok && cleanV != config.UnknownVariableValue {
v = cleanV
originalV = v