]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
python-common/ceph/deployment/drive_group: fix 'orch ls --format yaml' 44446/head
authorSage Weil <sage@newdream.net>
Tue, 30 Nov 2021 04:25:43 +0000 (23:25 -0500)
committerSebastian Wagner <sewagner@redhat.com>
Mon, 3 Jan 2022 14:00:10 +0000 (15:00 +0100)
commited661823ad99c3573278c5aab63a3bc5ae6380cb
tree333c1dbb9b4b74085d88e621e0cfc2933e025684
parentef0c84777286d19a07acc6a1945023e0636bf74c
python-common/ceph/deployment/drive_group: fix 'orch ls --format yaml'

In f76c02a658ed1de54a380381932bb58b6ab91d41 we may leave out the placement
key when it is empty.  If we take that path, we need to tolerate specs
that are missing that key.

Fixes: f76c02a658ed1de54a380381932bb58b6ab91d41
Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 7e51fe6227a92b92640d37216bdd99824c84769a)
src/python-common/ceph/deployment/drive_group.py
src/python-common/ceph/tests/test_drive_group.py