mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
remove unnecessary brackets in conditions (#10328)
* remove unnecessary brackets in conditions * add changelog frag
This commit is contained in:
@@ -393,10 +393,10 @@ class GitLabRunner(object):
|
||||
# python-gitlab 2.2 through at least 2.5 returns a list of dicts for list() instead of a Runner
|
||||
# object, so we need to handle both
|
||||
if hasattr(runner, "description"):
|
||||
if (runner.description == description):
|
||||
if runner.description == description:
|
||||
return self._gitlab.runners.get(runner.id)
|
||||
else:
|
||||
if (runner['description'] == description):
|
||||
if runner['description'] == description:
|
||||
return self._gitlab.runners.get(runner['id'])
|
||||
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user