]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/orchestrator: get_hosts return `HostSpec` instead of `InventoryDevice`
authorSebastian Wagner <sebastian.wagner@suse.com>
Thu, 13 Feb 2020 10:10:13 +0000 (11:10 +0100)
committerSebastian Wagner <sebastian.wagner@suse.com>
Fri, 21 Feb 2020 09:21:31 +0000 (10:21 +0100)
commitd9d95f72778f7c9481f9e78c67ba6d169565b46a
tree46722fc65080c1ce17b13cb3490e3b9b5f3b5daf
parentc2af2cbd8224f40f0769e5dd781beeae7fba5225
mgr/orchestrator: get_hosts return `HostSpec` instead of `InventoryDevice`

This fixes a bad symmetry problem:

previsously:
```python
def add_host(host: HostSpec): ...
def get_hosts() -> List[InventoryDevice]: ...
```

now:
```python
def add_host(host: HostSpec): ...
def get_hosts() -> List[HostSpec]: ...
```

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/cephadm/tests/test_cephadm.py
src/pybind/mgr/dashboard/controllers/host.py
src/pybind/mgr/dashboard/tests/test_host.py
src/pybind/mgr/orchestrator/_interface.py
src/pybind/mgr/orchestrator/module.py
src/pybind/mgr/rook/module.py
src/pybind/mgr/test_orchestrator/module.py