]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-daemon: fix 'version' field for legacy `ls` 31443/head
authorMichael Fritch <mfritch@suse.com>
Wed, 6 Nov 2019 17:35:51 +0000 (10:35 -0700)
committerMichael Fritch <mfritch@suse.com>
Wed, 6 Nov 2019 18:18:43 +0000 (11:18 -0700)
The `ls` command was reporting the git commit id instead of the ceph
version.

Signed-off-by: Michael Fritch <mfritch@suse.com>
src/ceph-daemon

index bc465fcafa2ed1e51ce5d349ae55f9f5ce07d4a3..20de5e9a3488a26fd44a3776e7fbbafa9487b021 100755 (executable)
@@ -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',