1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-02-04 07:51:50 +00:00

update code to python3 (#10903)

* update code to python3

* add changelog frag

* rollback adjustment for plugins/lookup/lmdb_kv.py

* accept PR suggestion for plugins/module_utils/utm_utils.py

* accept PR suggestion for plugins/module_utils/vexata.py

* Apply suggestions from code review

* Update changelogs/fragments/10903-2to3.yml

* Update changelogs/fragments/10903-2to3.yml
This commit is contained in:
Alexei Znamensky 2025-10-12 22:05:57 +13:00 committed by GitHub
parent 056633efaa
commit 07cfd6c4b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 18 additions and 24 deletions

View file

@ -183,7 +183,7 @@ class UTM:
result = None
if response is not None:
results = json.loads(response.read())
result = next(iter([d for d in results if d['name'] == module.params.get('name')]), None)
result = next((d for d in results if d['name'] == module.params.get('name')), None)
return info, result
def _clean_result(self, result):