ceph: get_local_version: allow optional v prefix for version number
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
@ -258,7 +258,7 @@ sub ceph_remove_keyfile {
|
|||||||
my $ceph_version_parser = sub {
|
my $ceph_version_parser = sub {
|
||||||
my $ceph_version = shift;
|
my $ceph_version = shift;
|
||||||
# FIXME this is the same as pve-manager PVE::Ceph::Tools get_local_version
|
# FIXME this is the same as pve-manager PVE::Ceph::Tools get_local_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 ($version, $buildcommit) = ($1, $2);
|
||||||
my $subversions = [ split(/\.|-/, $version) ];
|
my $subversions = [ split(/\.|-/, $version) ];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user