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:
parent
c4979dcde2
commit
7ed9ff32ad
@ -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