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:
Alexei Znamensky
2025-10-14 08:42:48 +13:00
committed by GitHub
parent c5253c5007
commit 3b83df3f79
29 changed files with 113 additions and 86 deletions

View File

@@ -312,13 +312,12 @@ def response_to_hash(module, response):
This is for doing comparisons with Ansible's current parameters.
"""
return {
u'create_time': response.get(u'create_time'),
u'display_name': response.get(u'display_name'),
u'name': response.get(u'name'),
u'push_policy': _push_policy_convert_from_response(
response.get('push_policy')),
u'topic_urn': response.get(u'topic_urn'),
u'update_time': response.get(u'update_time')
'create_time': response.get('create_time'),
'display_name': response.get('display_name'),
'name': response.get('name'),
'push_policy': _push_policy_convert_from_response(response.get('push_policy')),
'topic_urn': response.get('topic_urn'),
'update_time': response.get('update_time')
}