]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/devicehealth: fix _get_device_metrics ValueError
authorSage Weil <sage@newdream.net>
Sun, 20 Jun 2021 22:49:27 +0000 (17:49 -0500)
committerSage Weil <sage@newdream.net>
Thu, 24 Jun 2021 19:55:32 +0000 (14:55 -0500)
commit73b9653cfe3d415987af6249fd0d96763b33672a
treeacbd7039cfbe0f111317692456a6e63ba29a8de4
parent3c870731a740807244afd63ae233e9f5a542a89e
mgr/devicehealth: fix _get_device_metrics ValueError

This appears to have broken with abd35d47696c208990355395d48c1c1e261de95c

The SQL OR doesn't work because in the case that sample is passed,
_t2epoch(min_sample) is 0 and the 0 <= time portion of the expression
is always true.

Fixes: https://tracker.ceph.com/issues/51294
Signed-off-by: Sage Weil <sage@newdream.net>
src/pybind/mgr/devicehealth/module.py