From 4dd2e14cd15ad2840cfc3636251802f8eb0bc9ba Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 14 Jul 2019 16:13:10 +0300 Subject: Change: get and use tokens --- ick2/logapi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ick2/logapi.py') diff --git a/ick2/logapi.py b/ick2/logapi.py index c43e8a6..16aeaef 100644 --- a/ick2/logapi.py +++ b/ick2/logapi.py @@ -1,4 +1,4 @@ -# Copyright (C) 2017-2018 Lars Wirzenius +# Copyright (C) 2017-2019 Lars Wirzenius # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or @@ -59,7 +59,7 @@ class LogAPI(ick2.ResourceApiBase): # pragma: no cover def update(self, body, name, **kwargs): # pragma: no cover raise ick2.MethodNotAllowed('Updating builds directly is not allowed') - def show(self, name, **kwargs): - log = self._trans.get_resource('log', str(name)) + def show(self, name, token=None, **kwargs): + log = self._trans.get_resource(token, 'log', str(name)) ick2.log.log('info', msg_text='Returning log', log=log.as_dict()) return log['log'] -- cgit v1.2.1