Revert "helper/schema: TypeMap computed should mark diff as cmputed"

This reverts commit b73078c670.
This commit is contained in:
Mitchell Hashimoto 2014-12-09 09:27:19 -08:00
parent 82e60bb3cd
commit c3ec9f7965
2 changed files with 0 additions and 30 deletions

View File

@ -584,13 +584,6 @@ func (m schemaMap) diffMap(
// If the new map is nil and we're computed, then ignore it.
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
}

View File

@ -1292,29 +1292,6 @@ func TestSchemaMap_Diff(t *testing.T) {
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{
"config_vars": &Schema{