diff --git a/helper/schema/schema.go b/helper/schema/schema.go index e476e8039..752687d54 100644 --- a/helper/schema/schema.go +++ b/helper/schema/schema.go @@ -466,6 +466,8 @@ func (m schemaMap) diff( fallthrough case TypeInt: fallthrough + case TypeFloat: + fallthrough case TypeString: err = m.diffString(k, schema, diff, d, all) case TypeList: diff --git a/helper/schema/schema_test.go b/helper/schema/schema_test.go index 91e7ed9ec..c9b2821f2 100644 --- a/helper/schema/schema_test.go +++ b/helper/schema/schema_test.go @@ -1790,7 +1790,7 @@ func TestSchemaMap_Diff(t *testing.T) { Diff: &terraform.InstanceDiff{ Attributes: map[string]*terraform.ResourceAttrDiff{ - "port": &terraform.ResourceAttrDiff{ + "some_threshold": &terraform.ResourceAttrDiff{ Old: "567.8", New: "12.34", },