gitlab_runner: fix idempotency for shared runners (#65176)
This commit is contained in:
parent
651dff6a2e
commit
2eb615f1ef
1 changed files with 3 additions and 3 deletions
|
@ -252,10 +252,10 @@ class GitLabRunner(object):
|
|||
@param description Description of the runner
|
||||
'''
|
||||
def findRunner(self, description):
|
||||
runners = self._gitlab.runners.list(as_list=False)
|
||||
runners = self._gitlab.runners.all(as_list=False)
|
||||
for runner in runners:
|
||||
if (runner.description == description):
|
||||
return self._gitlab.runners.get(runner.id)
|
||||
if (runner['description'] == description):
|
||||
return self._gitlab.runners.get(runner['id'])
|
||||
|
||||
'''
|
||||
@param description Description of the runner
|
||||
|
|
Loading…
Add table
Reference in a new issue