diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-07-14 16:13:10 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-08-03 21:06:50 +0300 |
commit | 4dd2e14cd15ad2840cfc3636251802f8eb0bc9ba (patch) | |
tree | f5fd5b9be0ce316c35ad5876c925e148029474e0 /ick2/logapi.py | |
parent | 471b9d6209dc51890c7724b7b57b9121ba30af7d (diff) | |
download | ick2-4dd2e14cd15ad2840cfc3636251802f8eb0bc9ba.tar.gz |
Change: get and use tokens
Diffstat (limited to 'ick2/logapi.py')
-rw-r--r-- | ick2/logapi.py | 6 |
1 files changed, 3 insertions, 3 deletions
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'] |