]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
init-ceph: print trailing n in "status" output 13351/head
authorKefu Chai <kchai@redhat.com>
Fri, 10 Feb 2017 09:34:53 +0000 (17:34 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 10 Feb 2017 09:42:55 +0000 (17:42 +0800)
commit68ab3189445e9353e75b485e148f5e9389212a82
tree38d7745e8dcf28e87e562c7fd6e4fe0cfc9495a6
parent4d505acdf342810e1cc943383b5c8e86e37cbe03
init-ceph: print trailing n in "status" output

the version command is handled by HelpHook, which does not print newline
at the end of the returned JSON. so the output of "status" subcommand
looks like:

=== osd.1 ===
osd.1: running {"version":"Development"}=== osd.2 ===
osd.2: not running.

with this change, a newline is added to the end of version.

also use the "daemon" subcommand to talk to the asok, let the "ceph" cli
to figure out the asok path.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/init-ceph.in