mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 14:56:14 +01:00
Merge branch 'master' of https://github.com/andreas-schwab/osc
Decode data in do_token before printing it.
This commit is contained in:
commit
0c9c616bd8
@ -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] + "?")
|
||||
|
Loading…
Reference in New Issue
Block a user