Skip to content

Commit

Permalink
Merge pull request #17588 from creack/creack/fix-deepcopy-type
Browse files Browse the repository at this point in the history
Fix issue with deepcopy returning wrong type causing panic
  • Loading branch information
jbardin authored Apr 5, 2018
2 parents f62ef76 + bfac8e0 commit 61eae05
Show file tree
Hide file tree
Showing 6 changed files with 177 additions and 42 deletions.
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
87 changes: 79 additions & 8 deletions vendor/github.com/mitchellh/copystructure/copystructure.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions vendor/github.com/mitchellh/reflectwalk/location.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

108 changes: 85 additions & 23 deletions vendor/github.com/mitchellh/reflectwalk/reflectwalk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions vendor/vendor.json
Original file line number Diff line number Diff line change
Expand Up @@ -2030,10 +2030,10 @@
"revisionTime": "2015-09-17T21:48:07Z"
},
{
"checksumSHA1": "guxbLo8KHHBeM0rzou4OTzzpDNs=",
"checksumSHA1": "+p4JY4wmFQAppCdlrJ8Kxybmht8=",
"path": "github.com/mitchellh/copystructure",
"revision": "5af94aef99f597e6a9e1f6ac6be6ce0f3c96b49d",
"revisionTime": "2016-10-13T19:53:42Z"
"revision": "d23ffcb85de31694d6ccaa23ccb4a03e55c1303f",
"revisionTime": "2017-05-25T01:39:02Z"
},
{
"checksumSHA1": "V/quM7+em2ByJbWBLOsEwnY3j/Q=",
Expand Down Expand Up @@ -2087,10 +2087,10 @@
"revision": "6e6954073784f7ee67b28f2d22749d6479151ed7"
},
{
"checksumSHA1": "vBpuqNfSTZcAR/0tP8tNYacySGs=",
"checksumSHA1": "AMU63CNOg4XmIhVR/S/Xttt1/f0=",
"path": "github.com/mitchellh/reflectwalk",
"revision": "92573fe8d000a145bfebc03a16bc22b34945867f",
"revisionTime": "2016-10-03T17:45:16Z"
"revision": "63d60e9d0dbc60cf9164e6510889b0db6683d98c",
"revisionTime": "2017-07-26T20:21:17Z"
},
{
"checksumSHA1": "gcLub3oB+u4QrOJZcYmk/y2AP4k=",
Expand Down

0 comments on commit 61eae05

Please sign in to comment.