summaryrefslogtreecommitdiff
path: root/ick2/logapi.py
diff options
context:
space:
mode:
Diffstat (limited to 'ick2/logapi.py')
-rw-r--r--ick2/logapi.py6
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']