Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mgr/telemetry: catch also IndexError in gather_device_report()
When generating the device report, we obfuscate host names, which exist in a device's 'location' key. Some devices do not have a 'location' key, thus we catch a KeyError in these cases; in other cases the key exists, but its value is an empty list. Skip these too by catching an IndexError. Fixes: https://tracker.ceph.com/issues/53603 Signed-off-by: Yaarit Hatuka <[email protected]>
- Loading branch information