use correct ceph version command
"ceph version" retrieves the version from the cluster (i.e., from the queried monitor), but what is needed here is the local ceph version, which is returned by "ceph --version".
This commit is contained in:
committed by
Dietmar Maurer
parent
ed1f84c26f
commit
e76dbd9204
@ -113,7 +113,7 @@ sub ceph_version {
|
||||
if (defined($version_string)) {
|
||||
($major, $minor, $bugfix, $version_string) = &$ceph_version_parser($version_string);
|
||||
} else {
|
||||
run_command('ceph version', outfunc => sub {
|
||||
run_command('ceph --version', outfunc => sub {
|
||||
my $line = shift;
|
||||
($major, $minor, $bugfix, $version_string) = &$ceph_version_parser($line);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user