... 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)
:rtype: dict, or None if no metadata found
"""
metadata = self._ceph_get_metadata(svc_type, svc_id)
- if metadata is None:
+ if not metadata:
return default
return metadata