1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 14:56:14 +01:00
Decode data in do_token before printing it.
This commit is contained in:
Marcus Huewe 2019-05-25 23:14:41 +02:00
commit 0c9c616bd8

View File

@ -775,7 +775,7 @@ class Osc(cmdln.Cmdln):
req.add_header('Content-Type', 'application/octet-stream')
req.add_header('Authorization', "Token "+opts.trigger)
fd = urlopen(req, data=None)
print(fd.read())
print(decode_it(fd.read()))
else:
if args and args[0] in ['create', 'delete', 'trigger']:
raise oscerr.WrongArgs("Did you mean --" + args[0] + "?")