summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Farnum <greg@inktank.com>2013-10-17 16:45:06 -0700
committerSage Weil <sage@inktank.com>2013-10-22 12:33:03 -0700
commit445e8c9860d24aba1210382f3854e9cd25260603 (patch)
tree477fb3723f1d260540dfc4c8e0e826bd6632dcf3
parent32a23c5bbae65c46d080788e1066c61dfb0448de (diff)
downloadceph-445e8c9860d24aba1210382f3854e9cd25260603.tar.gz
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 <greg@inktank.com>
-rwxr-xr-xsrc/ceph.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ceph.in b/src/ceph.in
index 15f5ff3764a..8d4562ec94e 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