]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: init attrs created by settattr()
authorKefu Chai <kchai@redhat.com>
Wed, 29 Jan 2020 12:46:45 +0000 (20:46 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 29 Jan 2020 13:40:49 +0000 (21:40 +0800)
commit7c8e3e88d1e3700d9e27d63b35ee5a8433620181
tree4dc76d3702cbd9921edfe428ec964181669cd717
parentec2e53f59c2a0752c7631ff5375cc93341139668
mgr/cephadm: init attrs created by settattr()

to address the test falure caused by mypy:
```
mypy run-test: commands[0] | mypy --config-file=../../mypy.ini ansible/module.py cephadm/module.py mgr_module.py mgr_util.py orchestrator.py orchestrator_cli/module.py rook/module.py
test_orchestrator/module.py
cephadm/module.py: note: In member "_check_for_strays" of class "CephadmOrchestrator":
cephadm/module.py:596: error: "CephadmOrchestrator" has no attribute "warn_on_stray_hosts"
cephadm/module.py:596: error: "CephadmOrchestrator" has no attribute "warn_on_stray_services"
cephadm/module.py:599: error: "CephadmOrchestrator" has no attribute "warn_on_stray_services"
Found 3 errors in 1 file (checked 8 source files)
```
see also https://github.com/python/mypy/issues/5719

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/cephadm/module.py