gitlab_runner: Make owned and project mutually exclusive (#4136)

* gitlab_runner: Set owned and project mutually exclusive

* gitlab_runner : Refactor _runners_endpoint usage
This commit is contained in:
Léo GATELLIER 2022-02-16 22:54:46 +01:00 committed by GitHub
parent 988cc82a89
commit 05c3e0d69f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 23 deletions

View file

@ -17,8 +17,9 @@ import gitlab
class FakeAnsibleModule(object):
def __init__(self):
def __init__(self, module_params=None):
self.check_mode = False
self.params = module_params if module_params else {}
def fail_json(self, **args):
pass