]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: use dict instead of defaultdict to silence mypy warning
authorKefu Chai <kchai@redhat.com>
Sun, 17 Jan 2021 08:36:35 +0000 (16:36 +0800)
committerSebastian Wagner <sebastian.wagner@suse.com>
Fri, 29 Jan 2021 12:42:38 +0000 (13:42 +0100)
commit78351ed542269b82fea52686591ac889951d5e48
tree171e4624c933d6d2a34eefdb87cc9511b2da1c33
parent198acf49306459e5ef2ded29b4f64f97ff2e95db
mgr/cephadm: use dict instead of defaultdict to silence mypy warning

otherwise we have:

1: cephadm/module.py:30: note: In module imported here:
1: cephadm/serve.py: note: In member "_check_for_strays" of class "CephadmServe":
1: cephadm/serve.py:395: error: Argument "default" to "get_metadata" of "MgrModule" has incompatible type "defaultdict[str, None]"; expected "Optional[Dict[str, str]]"

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 6c3d8174358b30f3c9eef1b9342df437749d75fd)
src/pybind/mgr/cephadm/serve.py