]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
dashboard: Return float if rate not available
authorBoris Ranto <branto@redhat.com>
Tue, 29 May 2018 21:32:48 +0000 (23:32 +0200)
committerBoris Ranto <branto@redhat.com>
Thu, 31 May 2018 08:02:41 +0000 (10:02 +0200)
commit5f70635e4e26957bb295a62eb54f2441e8caf207
tree0c69eb0e3b82685bb3f0328521444800770dfe15
parent3f1f9844c43a19e0cb1b4a651cd70f4f5c0f61b4
dashboard: Return float if rate not available

This fixes a test case issue when some of the data might not be
available during the test, yet. The test expects the second value to be
JFloat but that fails because get_rates return an int in that case.

Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit 58ffd146261586b5598c946fd730df0b223294e7)
src/pybind/mgr/dashboard/services/ceph_service.py