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:
Michael Fritch 2019-11-06 10:35:51 -07:00
parent 7328fa4dcf
commit 440830c9c9
No known key found for this signature in database
GPG Key ID: 75F3EB2E80A03B7F

View File

@ -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',