]> git.proxmox.com Git - pve-manager.git/commitdiff
ceph: get_local_version: allow optional v prefix for version number
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 22 May 2020 16:45:07 +0000 (18:45 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 22 May 2020 16:45:07 +0000 (18:45 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Ceph/Tools.pm

index acec746ace39f703b813109a2f0a59cacd2b487e..3273c7d1ab8fb9bb52a866e11173f3190b4fe4b6 100644 (file)
@@ -59,7 +59,7 @@ sub get_local_version {
        );
        return undef if !defined $ceph_version;
 
-       if ($ceph_version =~ /^ceph.*\s(\d+(?:\.\d+)+(?:-pve\d+)?)\s+(?:\(([a-zA-Z0-9]+)\))?/) {
+       if ($ceph_version =~ /^ceph.*\sv?(\d+(?:\.\d+)+(?:-pve\d+)?)\s+(?:\(([a-zA-Z0-9]+)\))?/) {
            my ($version, $buildcommit) = ($1, $2);
            my $subversions = [ split(/\.|-/, $version) ];