]> 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)
committerKefu Chai <kchai@redhat.com>
Tue, 26 Jan 2021 10:02:24 +0000 (18:02 +0800)
commit6c3d8174358b30f3c9eef1b9342df437749d75fd
treed7cb9c681ae0795c7372770353cdece4d33b3350
parent5272748e179f67c8d5464d3b38e96eb8829b6b00
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>
src/pybind/mgr/cephadm/serve.py