]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
python-common: Make HostPlacementSpec.to_json() more friendly 36903/head
authorSebastian Wagner <sebastian.wagner@suse.com>
Mon, 31 Aug 2020 09:12:47 +0000 (11:12 +0200)
committerSebastian Wagner <sebastian.wagner@suse.com>
Mon, 31 Aug 2020 09:16:08 +0000 (11:16 +0200)
commit642a6f13130f5ae154679188233c1e03fdca5e38
tree84c69112b1e39378d49ec5b7e059395d83c819d2
parent912f6fab28d18704f9cca05c9537c231a5462c83
python-common: Make HostPlacementSpec.to_json() more friendly

We will now generate

```yaml
placement:
  hosts:
  - ceph-001
```

instead of

```yaml
placement:
  hosts:
  - hostname: ceph-001
    name: ''
    network: ''
```

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
src/pybind/mgr/cephadm/tests/test_cephadm.py
src/pybind/mgr/cephadm/tests/test_spec.py
src/python-common/ceph/deployment/service_spec.py
src/python-common/ceph/tests/test_service_spec.py