Skip to content

Commit

Permalink
Fix issue with deepcopy returning wrong type causing panic
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume J. Charmes <[email protected]>
  • Loading branch information
creack committed Mar 14, 2018
1 parent 3802b14 commit a4f9413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper/schema/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a4f9413

Please sign in to comment.