From: Michael Fritch Date: Wed, 6 Nov 2019 17:35:51 +0000 (-0700) Subject: ceph-daemon: fix 'version' field for legacy `ls` X-Git-Tag: v15.1.0~1005^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F31443%2Fhead;p=ceph.git 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 --- diff --git a/src/ceph-daemon b/src/ceph-daemon index bc465fcafa2..20de5e9a348 100755 --- a/src/ceph-daemon +++ b/src/ceph-daemon @@ -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',