def help_for_target(target):
ret, outbuf, outs = json_command(target=target,
- prefix='get_command_descriptions')
+ prefix='get_command_descriptions',
+ timeout=10)
if ret:
print >> sys.stderr, \
"couldn't get command descriptions for {0}: {1}".\
return valid_dict
def json_command(target=('mon', ''), prefix=None, argdict=None, inbuf='',
- timeout=30):
+ timeout=0):
"""
Send a new_style command to a daemon using librados's
mon_command, osd_command, or pg_command. Prefix may be supplied
childargs.remove('--')
try:
- cluster.connect(timeout=15)
+ cluster.connect()
except KeyboardInterrupt:
print >> sys.stderr, "connection aborted"
return 1