]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/cephfs: handle non-numeric values for json.loads() 47812/head
authorRishabh Dave <ridave@redhat.com>
Thu, 25 Aug 2022 17:26:26 +0000 (22:56 +0530)
committerRishabh Dave <ridave@redhat.com>
Fri, 26 Aug 2022 11:36:25 +0000 (17:06 +0530)
commit38fdf6df664e7fc28f1e381ce1bb590fc74926ae
tree26603e28478e20fa74ca93a4df2818365eeee3bd
parentc4a119ba9adc6e6769906d1621eac085f21db04c
qa/cephfs: handle non-numeric values for json.loads()

Not handling values infinity, negative infinity and "NaN" properly leads
to JSONDecodeError. Replace "inf" by "Infinity" in string before loading
JSON and pass a method to json.load() to handle these values to fix this
issue.

Introduced-by: a8f138cd3623e42c4f74a18d54ec7dfcc1e89e58
Fixes: https://tracker.ceph.com/issues/57299
Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/cephfs/filesystem.py