mirror of
https://github.com/ceph/ceph
synced 2025-02-16 07:17:21 +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:
|
||||
out, err, code = call(['ceph', '-v'])
|
||||
if not code and out.startswith('ceph version '):
|
||||
host_version = out.split(' ')[3]
|
||||
host_version = out.split(' ')[2]
|
||||
|
||||
ls.append({
|
||||
'style': 'legacy',
|
||||
|
Loading…
Reference in New Issue
Block a user