fix ceph_version_parser
Ceph change ceph version output. full output of 'ceph --version' Luminous 'ceph version 12.1.0 (262617c9f16c55e863693258061c5b25dea5b086) luminous (dev)' Jewel 'ceph version 10.2.7 (50e863e0f4bc8f4b9e31156de690d765af245185)'
This commit is contained in:
committed by
Dietmar Maurer
parent
3bb0123d80
commit
21aaefd522
@ -116,7 +116,7 @@ my $krdb_feature_disable = sub {
|
||||
|
||||
my $ceph_version_parser = sub {
|
||||
my $line = shift;
|
||||
if ($line =~ m/^ceph version ((\d+)\.(\d+)\.(\d+))(?: \([a-fA-F0-9]+\))?$/) {
|
||||
if ($line =~ m/^ceph version ((\d+)\.(\d+)\.(\d+))(?: \([a-fA-F0-9]+\))/) {
|
||||
return ($2, $3, $4, $1);
|
||||
} else {
|
||||
warn "Could not parse Ceph version: '$line'\n";
|
||||
|
||||
Reference in New Issue
Block a user