Commit 0d226c3
BUG/MAJOR: discovery: Add type assertion check to DiscoverChildPaths
A panic is caused when DiscoverChildPaths loops over endpoints that
do not have a "get" method defined within embedded_spec.go. At time of
this commit it is caused specifically by "/cluster/certificate" only
having "post" and not a "get" defined. This commit adds a type assertion
check to verify that v["get"] is of type map[string]interface{}.
This fixes #851 parent 448d36e commit 0d226c3
1 file changed
+11
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
89 | 91 | | |
90 | | - | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
0 commit comments