This fixes an error like
$ ceph -s -o -
Traceback (most recent call last):
File "bin/ceph", line 1267, in <module>
retval = main()
File "bin/ceph", line 1229, in main
outf.write(outbuf)
TypeError: write() argument must be str, not bytes
Signed-off-by: Sage Weil <sage@redhat.com>
if parsed_args.output_file:
try:
if parsed_args.output_file == '-':
- outf = sys.stdout
+ outf = raw_stdout
else:
outf = open(parsed_args.output_file, 'wb')
except Exception as e: