Commit 9b2dd75
David Noble
DVPL-4301: Custom ReportingCommand crashes when it does not implement map operation
Fix:
+ Changed test for ReportingCommand.map override in ReportingCommand.ConfigurationSettings.fix_up
Effect: We correctly identify when the ReportingCommand.map method is overridden and don't raise a KeyError when its not overridden.
+ Added check for ReportingCommand.map override in ReportingCommand.ConfigurationSettings.streaming_preop
Effect: streaming_preop is only set if there's a map method override
Signed-off-by: David Noble <dnoble@splunk.com>1 parent fcea8ec commit 9b2dd75
1 file changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
165 | 170 | | |
166 | 171 | | |
167 | 172 | | |
168 | 173 | | |
| 174 | + | |
169 | 175 | | |
170 | 176 | | |
171 | 177 | | |
| |||
196 | 202 | | |
197 | 203 | | |
198 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
199 | 209 | | |
200 | 210 | | |
201 | 211 | | |
202 | 212 | | |
203 | 213 | | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | 214 | | |
209 | 215 | | |
210 | 216 | | |
| |||
0 commit comments