diff options
author | Sage Weil <sage@inktank.com> | 2013-06-16 16:49:05 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-06-16 16:49:05 -0700 |
commit | 2fe4d29f4de567483b28b880ad90fa9f189f9c13 (patch) | |
tree | ddf3af325e51d6f8b754d1f89c2dbc031fce7ca9 | |
parent | 8d9eef23942813612d6016222d5a82f8a663fa47 (diff) | |
download | ceph-2fe4d29f4de567483b28b880ad90fa9f189f9c13.tar.gz |
ceph: remove space when prefix is blank
Signed-off-by: Sage Weil <sage@inktank.com>
-rwxr-xr-x | src/ceph.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ceph.in b/src/ceph.in index 8616a55de93..f4bdfe10cf1 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -1566,7 +1566,7 @@ def main(): prefix = '' suffix = '' if not parsed_args.output_file and len(targets) > 1: - prefix='{0}.{1}:'.format(*target) + prefix='{0}.{1}: '.format(*target) suffix='\n' ret, outbuf, outs = json_command(target=target, @@ -1575,7 +1575,7 @@ def main(): if ret == -errno.EINVAL: # send command to old monitor or OSD if verbose: - print prefix, '{0} to old {1}'.format(' '.join(childargs), target[0]) + print prefix + '{0} to old {1}'.format(' '.join(childargs), target[0]) compat = True if parsed_args.output_format: childargs.extend(['--format', parsed_args.output_format]) @@ -1596,7 +1596,7 @@ def main(): if ret < 0: ret = -ret - print >> sys.stderr, prefix, 'Error {0}: {1}'.format(errno.errorcode[ret], outs) + print >> sys.stderr, prefix + 'Error {0}: {1}'.format(errno.errorcode[ret], outs) if len(targets) > 1: final_ret = ret else: @@ -1608,7 +1608,7 @@ def main(): # old cli/mon would send status string to stdout on non-error print outs else: - print >> sys.stderr, prefix, outs + print >> sys.stderr, prefix + outs if (parsed_args.output_file): outf.write(outbuf) |