mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42: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:
@@ -139,7 +139,7 @@ def get_existing_pipeline_variable(module, bitbucket):
|
||||
return None
|
||||
|
||||
page += 1
|
||||
var = next(filter(lambda v: v['key'] == module.params['name'], content['values']), None)
|
||||
var = next((v for v in content['values'] if v['key'] == module.params['name']), None)
|
||||
|
||||
if var is not None:
|
||||
var['name'] = var.pop('key')
|
||||
|
||||
Reference in New Issue
Block a user