]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Diskmanage.pm
fix #2266: Diskmanage: get correct osd id
[pve-storage.git] / PVE / Diskmanage.pm
index f446269b10fb53fcc85304e94037fc4d9f72d03d..0deb1a6eea7c57726e225e1a871020f8485e3426 100644 (file)
@@ -258,7 +258,7 @@ sub get_ceph_volume_infos {
        if ($fields->[1] =~ m|^osd-([^-]+)-|) {
            my $type = $1;
            # $result autovivification is wanted, to not creating empty hashes
-           if (($type eq 'block' || $type eq 'data') && $fields->[2] =~ m/ceph.osd_id=([^,])/) {
+           if (($type eq 'block' || $type eq 'data') && $fields->[2] =~ m/ceph.osd_id=([^,]+)/) {
                $result->{$dev}->{osdid} = $1;
                $result->{$dev}->{bluestore} = ($type eq 'block');
            } else {