Revert "helper/schema: TypeMap computed should mark diff as cmputed"
This reverts commit b73078c670
.
This commit is contained in:
parent
82e60bb3cd
commit
c3ec9f7965
|
@ -584,13 +584,6 @@ func (m schemaMap) diffMap(
|
||||||
|
|
||||||
// If the new map is nil and we're computed, then ignore it.
|
// If the new map is nil and we're computed, then ignore it.
|
||||||
if n == nil && schema.Computed {
|
if n == nil && schema.Computed {
|
||||||
// If we don't have an old value, this whole map is computed
|
|
||||||
if o == nil {
|
|
||||||
diff.Attributes[k] = &terraform.ResourceAttrDiff{
|
|
||||||
NewComputed: true,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1292,29 +1292,6 @@ func TestSchemaMap_Diff(t *testing.T) {
|
||||||
Err: false,
|
Err: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
Schema: map[string]*Schema{
|
|
||||||
"vars": &Schema{
|
|
||||||
Type: TypeMap,
|
|
||||||
Computed: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
State: nil,
|
|
||||||
|
|
||||||
Config: nil,
|
|
||||||
|
|
||||||
Diff: &terraform.InstanceDiff{
|
|
||||||
Attributes: map[string]*terraform.ResourceAttrDiff{
|
|
||||||
"vars": &terraform.ResourceAttrDiff{
|
|
||||||
NewComputed: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
Err: false,
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
{
|
||||||
Schema: map[string]*Schema{
|
Schema: map[string]*Schema{
|
||||||
"config_vars": &Schema{
|
"config_vars": &Schema{
|
||||||
|
|
Loading…
Reference in New Issue