fix missing osd info for osd 0

0 is falsy, we have to check for definedness
also adapt the tests so we test for this

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak
2019-07-03 08:43:12 +02:00
committed by Thomas Lamprecht
parent 099bb9a389
commit 35ccd3d004
3 changed files with 3 additions and 3 deletions

View File

@ -151,6 +151,6 @@
"rpm" : 0,
"bluestore": 0,
"type" : "hdd",
"osdid" : 2
"osdid" : 0
}
}

View File

@ -1,4 +1,4 @@
/dev/sdg(0);osd-block-01234;ceph.osd_id=1
/dev/sdh(0);osd-journal-01234;ceph.osd_id=1
/dev/sdi(0);osd-db-01234;ceph.osd_id=1
/dev/sdj(0);osd-data-01234;ceph.osd_id=2
/dev/sdj(0);osd-data-01234;ceph.osd_id=0