Commit a4146bf
committed
19859 FIX printer_supply: skip nameless supplies during discovery
Service discovery for the printer_supply check crashed with TypeError:
'item' must be a non empty string or ommited entirely, got '' when a
printer reported a supply entry without a name.
Nameless supplies are now skipped instead of aborting discovery for the
whole device.
Crash-Group-ID: 3957
Jira: CMK-33989
Change-Id: I6830aba17ccb4b0a650d1816f71d6a4d18e51a3d1 parent 434ca37 commit a4146bf
3 files changed
Lines changed: 23 additions & 4 deletions
File tree
- .werks
- cmk/plugins/collection/agent_based
- tests/unit/cmk/plugins/collection/agent_based
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
232 | 236 | | |
233 | 237 | | |
234 | 238 | | |
| |||
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | 90 | | |
95 | 91 | | |
96 | 92 | | |
| |||
0 commit comments