Blob Blame History Raw
From 7ed9ff32ad0a7eb1708549a1178269f01320d5af Mon Sep 17 00:00:00 2001
From: Andreas Schwab <schwab@suse.de>
Date: Thu, 23 May 2019 09:49:21 +0200
Subject: [PATCH 4/9] osc token: decode data from trigger url

---
 osc/commandline.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/osc/commandline.py b/osc/commandline.py
index 8c22002..1666552 100644
--- a/osc/commandline.py
+++ b/osc/commandline.py
@@ -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] + "?")
-- 
2.21.0