When deleting a pool without the --i-really-really-mean-it option, if
the pool name has non-ascii characters, the format of the command
message raises a UnicodeEncodeError exception.
Fixes: http://tracker.ceph.com/issues/15913
Signed-off-by: Ricardo Dias <rdias@suse.com>
(cherry picked from commit
805873fed0135616a4cf8b499d1ba0b10dac004c)
if ret < 0:
ret = -ret
- print('Error {0}: {1}'.format(errno.errorcode.get(ret, 'Unknown'), outs), file=sys.stderr)
+ print(u'Error {0}: {1}'.format(errno.errorcode.get(ret, 'Unknown'), outs), file=sys.stderr)
if len(targets) > 1:
final_ret = ret
else: