]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr: check for empty metadata mgr_module:get_metadata() 49967/head
authorVenky Shankar <vshankar@redhat.com>
Fri, 26 Aug 2022 08:59:19 +0000 (04:59 -0400)
committerVenky Shankar <vshankar@redhat.com>
Thu, 2 Feb 2023 05:49:03 +0000 (11:19 +0530)
commit3cfd43d76b1acff12d14d8bd9ca2245ff4d81e7e
treee281ef4f1d03b00e475d9cb76fc0e258ea42c293
parent5f4333eda80661ef63c4796f4753c27970234722
pybind/mgr: check for empty metadata mgr_module:get_metadata()

... rather than just None - looks like we could get back an
empty dictionary when the metadata isn't populated (which is
asynchronous).

Fixes: http://tracker.ceph.com/issues/57072
Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 42ee5145a2ad9eec0822e1341cc3c5bd9ca2aae8)
src/pybind/mgr/mgr_module.py