diff options
Diffstat (limited to 'ick2/workerapi.py')
-rw-r--r-- | ick2/workerapi.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ick2/workerapi.py b/ick2/workerapi.py index d4b508c..9a2c5f2 100644 --- a/ick2/workerapi.py +++ b/ick2/workerapi.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 @@ -34,4 +34,5 @@ class WorkerAPI(ick2.ResourceApiBase): # pragma: no cover def create(self, body, **kwargs): client_id = self._get_client_id(**kwargs) body['worker'] = client_id + kwargs['token'] = self._token_getter.get_token() return super().create(body, **kwargs) |