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:
Fabian Grünbichler
2016-06-14 11:39:42 +02:00
committed by Dietmar Maurer
parent ed1f84c26f
commit e76dbd9204

View File

@ -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);
});