From: Greg Farnum Date: Thu, 17 Oct 2013 23:45:06 +0000 (-0700) Subject: ceph: fixup do_help() function connection check X-Git-Tag: v0.72-rc1~23^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=445e8c9860d24aba1210382f3854e9cd25260603;p=ceph.git ceph: fixup do_help() function connection check We might have cluster_handle defined, but not have successfully connected. Instead, check if it's in the connected state. Signed-off-by: Greg Farnum --- diff --git a/src/ceph.in b/src/ceph.in index 15f5ff3764a5..8d4562ec94ef 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -196,7 +196,7 @@ def do_help(parser, args): parser.print_help() print '\n' - if (cluster_handle): + if (cluster_handle.state == "connected"): help_for_target(target=('mon', ''), partial=partial) return 0