summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects/runners.py
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-11-05 21:01:58 +0100
committerNejc Habjan <hab.nejc@gmail.com>2021-11-08 19:10:46 +0100
commit444a7f76f287996ae10fa9e6d800399feb698659 (patch)
treef18d6795990bba2e4f1389fa75055d14b995e18f /gitlab/v4/objects/runners.py
parent472b300154c5e59289d83f0b34d24bc52eb9b6da (diff)
downloadgitlab-refactor/named-placeholders.tar.gz
refactor: use new-style formatting for named placeholdersrefactor/named-placeholders
Diffstat (limited to 'gitlab/v4/objects/runners.py')
-rw-r--r--gitlab/v4/objects/runners.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gitlab/v4/objects/runners.py b/gitlab/v4/objects/runners.py
index fac9100..7b59b8a 100644
--- a/gitlab/v4/objects/runners.py
+++ b/gitlab/v4/objects/runners.py
@@ -30,7 +30,7 @@ class RunnerJob(RESTObject):
class RunnerJobManager(ListMixin, RESTManager):
- _path = "/runners/%(runner_id)s/jobs"
+ _path = "/runners/{runner_id}/jobs"
_obj_cls = RunnerJob
_from_parent_attrs = {"runner_id": "id"}
_list_filters = ("status",)
@@ -125,7 +125,7 @@ class GroupRunner(RESTObject):
class GroupRunnerManager(ListMixin, RESTManager):
- _path = "/groups/%(group_id)s/runners"
+ _path = "/groups/{group_id}/runners"
_obj_cls = GroupRunner
_from_parent_attrs = {"group_id": "id"}
_create_attrs = RequiredOptional(required=("runner_id",))
@@ -138,7 +138,7 @@ class ProjectRunner(ObjectDeleteMixin, RESTObject):
class ProjectRunnerManager(CreateMixin, DeleteMixin, ListMixin, RESTManager):
- _path = "/projects/%(project_id)s/runners"
+ _path = "/projects/{project_id}/runners"
_obj_cls = ProjectRunner
_from_parent_attrs = {"project_id": "id"}
_create_attrs = RequiredOptional(required=("runner_id",))