1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-05 07:03:38 +02:00
Decode data in do_token before printing it.
This commit is contained in:
Marcus Huewe
2019-05-25 23:14:41 +02:00

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] + "?")