You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I receive a runner object I can see a list of all the enabled projects for this runner. I was trying to one and then save the runner, but that doesn't work:
Hi @gpocentek - i saw you added 'create'. in the above fix. 04435e1.
p = repo._project.manager.gitlab.projects.get(
'myservice/test/template')
# all runners, shared or not from the other project in my repo
list3 = repo._project.runners.list()
#runners from this project
list3keys = [x.id for x in list3]
l = p.runners.list()
# add non-shared specific runners
for x in l:
if not x.is_shared:
repo._project.runners.create({'runner_id': x.id})
else:
if x.id in list3keys:
repo._project.runners.delete(x.id)
is this the right way to disable shared runners and add only my non-shared specials for a project?
it seems that delete always gets a 404.. even though i checked the list list3keys were actually in the list
Activity
gpocentek commentedon Jan 21, 2017
This feature is not yet implemented in python-gitlab, I'll work on this.
As a temporary workaround you can run a raw request to gitlab (untested):
daveyjcrocket commentedon May 3, 2018
Hi @gpocentek - i saw you added 'create'. in the above fix. 04435e1.
is this the right way to disable shared runners and add only my non-shared specials for a project?
it seems that delete always gets a 404.. even though i checked the list list3keys were actually in the list