diff --git a/helper/schema/schema.go b/helper/schema/schema.go index 6773fe584..43d0f0070 100644 --- a/helper/schema/schema.go +++ b/helper/schema/schema.go @@ -395,7 +395,7 @@ func (m *schemaMap) DeepCopy() schemaMap { if err != nil { panic(err) } - return copy.(schemaMap) + return *copy.(*schemaMap) } // Diff returns the diff for a resource given the schema map,