mirror of
https://github.com/ceph/ceph
synced 2025-02-19 17:08:05 +00:00
ceph-daemon: fix 'version' field for legacy ls
The `ls` command was reporting the git commit id instead of the ceph version. Signed-off-by: Michael Fritch <mfritch@suse.com>
This commit is contained in:
parent
7328fa4dcf
commit
440830c9c9
@ -1320,7 +1320,7 @@ def list_daemons():
|
|||||||
if not host_version:
|
if not host_version:
|
||||||
out, err, code = call(['ceph', '-v'])
|
out, err, code = call(['ceph', '-v'])
|
||||||
if not code and out.startswith('ceph version '):
|
if not code and out.startswith('ceph version '):
|
||||||
host_version = out.split(' ')[3]
|
host_version = out.split(' ')[2]
|
||||||
|
|
||||||
ls.append({
|
ls.append({
|
||||||
'style': 'legacy',
|
'style': 'legacy',
|
||||||
|
Loading…
Reference in New Issue
Block a user