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

@@ -149,7 +149,7 @@ def main():
# Handle multiple log files
logs = p["path"].split(",")
logs = filter(None, logs)
logs = [_f for _f in logs if _f]
if p["state"] in ["present", "followed"]:
follow_log(module, le_path, logs, name=p['name'], logtype=p['logtype'])