mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-02-04 07:51:50 +00:00
modules: update code to python3 (#10904)
* modules: update code to python3 * pamd: rollback changes * add changelog frag * fix/improve assignments using generators * Update plugins/modules/launchd.py Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
c5253c5007
commit
3b83df3f79
29 changed files with 113 additions and 86 deletions
|
|
@ -268,7 +268,7 @@ class GitlabMilestones(object):
|
|||
|
||||
def get_milestone_id(self, _title):
|
||||
_milestone_list = self.gitlab_object.milestones.list()
|
||||
_found = list(filter(lambda x: x.title == _title, _milestone_list))
|
||||
_found = [x for x in _milestone_list if x.title == _title]
|
||||
if _found:
|
||||
return _found[0].id
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue