Commit d5baff3
committed
Handle None for signal_id in GetValue endpoint
Currently, calling the GetValue endpoint with an empty body
will cause the databroker to panic since unwrap is called
on the signal_id option - which is None in that case. In
order to prevent the server-side panic, a simple none check
is performed before calling unwrap.
Signed-off-by: Michael Engel <mengel@redhat.com>1 parent 67fc220 commit d5baff3
1 file changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
853 | 853 | | |
854 | 854 | | |
855 | 855 | | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
856 | 860 | | |
857 | 861 | | |
858 | 862 | | |
| |||
1175 | 1179 | | |
1176 | 1180 | | |
1177 | 1181 | | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
1178 | 1204 | | |
1179 | 1205 | | |
1180 | 1206 | | |
| |||
0 commit comments