]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Diskmanage.pm
fix missing osd info for osd 0
[pve-storage.git] / PVE / Diskmanage.pm
index 41158f4843df2e7be5e3a967feabd0ac0179e643..f446269b10fb53fcc85304e94037fc4d9f72d03d 100644 (file)
@@ -602,7 +602,7 @@ sub get_disks {
            $journal_count += $ceph_volume->{journal} // 0;
            $db_count += $ceph_volume->{db} // 0;
            $wal_count += $ceph_volume->{wal} // 0;
-           if ($ceph_volume->{osdid}) {
+           if (defined($ceph_volume->{osdid})) {
                $osdid = $ceph_volume->{osdid};
                $bluestore = 1 if $ceph_volume->{bluestore};
            }