1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-13 17:16:23 +01:00

osc token: decode data from trigger url

This commit is contained in:
Andreas Schwab 2019-05-23 09:49:21 +02:00
parent c4979dcde2
commit 7ed9ff32ad

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