summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Farnum <greg@inktank.com>2013-10-17 16:45:06 -0700
committerGreg Farnum <greg@inktank.com>2013-10-17 16:45:06 -0700
commitb5ec08407645e0a414e5365ffec89e4e44a58c27 (patch)
tree6f3f6ffcb37f04d29c8c862db28e3a0981b52e68
parent5c280a242b69eb15a916f2a7b5032a2f7081913b (diff)
downloadceph-b5ec08407645e0a414e5365ffec89e4e44a58c27.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 075ec80c20b..29fae7273cf 100755
--- a/src/ceph.in
+++ b/src/ceph.in
@@ -194,7 +194,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