patchback[bot]
377a599372
[PR #11222/c7f6a28d backport][stable-12] Add basic typing for module_utils ( #11243 )
...
Add basic typing for module_utils (#11222 )
* Add basic typing for module_utils.
* Apply some suggestions.
* Make pass again.
* Add more types as suggested.
* Normalize extra imports.
* Add more type hints.
* Improve typing.
* Add changelog fragment.
* Reduce changelog.
* Apply suggestions from code review.
* Fix typo.
* Cleanup.
* Improve types and make type checking happy.
* Let's see whether older Pythons barf on this.
* Revert "Let's see whether older Pythons barf on this."
This reverts commit 9973af3dbe .
* Add noqa.
---------
(cherry picked from commit c7f6a28d89 )
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2025-12-01 21:16:37 +01:00
patchback[bot]
8930d03c7c
[PR #11215/862fe79a backport][stable-12] fix ruff case SIM110 ( #11217 )
...
fix ruff case SIM110 (#11215 )
* fix ruff case SIM110
* Update plugins/module_utils/xenserver.py
* add changelog frag
---------
(cherry picked from commit 862fe79a22 )
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-11-25 21:59:06 +01:00
patchback[bot]
1e9217197f
[PR #11205/d364e354 backport][stable-12] Deprecate unused module utils ( #11213 )
...
Deprecate unused module utils (#11205 )
Deprecate unused module utils.
(cherry picked from commit d364e35423 )
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-11-25 21:41:56 +01:00
patchback[bot]
1d28e48d85
[PR #11097/40aea793 backport][stable-12] Use raise from in modules ( #11130 )
...
Use raise from in modules (#11097 )
* Use raise from.
* Add changelog fragment.
* Add comment.
(cherry picked from commit 40aea793ee )
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-11-12 21:31:11 +01:00
Felix Fontein
340ff8586d
Reformat everything.
2025-11-01 13:46:53 +01:00
Alexei Znamensky
b85e263466
use f-strings in module utils ( #10901 )
...
* use f-strings in module utils
* Apply suggestions from code review
Co-authored-by: Felix Fontein <felix@fontein.de>
* remove unused imports
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-10-11 11:43:43 +02:00
Felix Fontein
8f8a0e1d7c
Fix __future__ imports, __metaclass__ = type, and remove explicit UTF-8 encoding statement for Python files ( #10886 )
...
* Adjust all __future__ imports:
for i in $(grep -REl "__future__.*absolute_import" plugins/ tests/); do
sed -e 's/from __future__ import .*/from __future__ import annotations/g' -i $i;
done
* Remove all UTF-8 encoding specifications for Python source files:
for i in $(grep -REl '[-][*]- coding: utf-8 -[*]-' plugins/ tests/); do
sed -e '/^# -\*- coding: utf-8 -\*-/d' -i $i;
done
* Remove __metaclass__ = type:
for i in $(grep -REl '__metaclass__ = type' plugins/ tests/); do
sed -e '/^__metaclass__ = type/d' -i $i;
done
2025-10-10 19:52:04 +02:00
Felix Fontein
123c7efe5e
Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt ( #5065 )
...
* Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt.
* Replace 'Copyright:' with 'Copyright'
sed -i 's|Copyright:\(.*\)|Copyright\1|' $(rg -l 'Copyright:')
Co-authored-by: Maxwell G <gotmax@e.email>
2022-08-05 12:28:29 +02:00
Felix Fontein
0be68bf04b
Add simplified_bsd.txt license file ( #4759 )
...
* Add simplified_bsd.txt and adjust references.
* Add changelog.
2022-06-02 07:30:06 +02:00
Alexei Znamensky
771e9de010
mass-added the utf-8 marker ( #3163 )
...
* added the utf-8 marker
* fixed the utf-8 marker where it was missde before
2021-08-08 10:40:22 +02:00
Abhijeet Kasurde
832dd55144
sanity: Add future boilerplate ( #573 )
...
* sanity: Add future boilerplate
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Module Utils
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Scripts
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* sanity: Add future boilerplate
* Tests
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* CI failure
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-06-24 21:50:36 +02:00
Andrew Klychkov
764cae9f33
postgresql_privs: add trust_input parameter ( #177 )
...
* postgresql_privs: add trust_input parameter
* add changelog fragment
2020-04-20 09:01:42 +03:00
Andrew Klychkov
6d7f66539c
postgresql_user: add trust_input parameter ( #116 )
...
* postgresql: add input checks for potentially dangerous substrings
* postgresql_user: add trust_input parameter
* add CI, add changelog fragment
* fix CI
* moved input patterns outside is_input_dangerous function
* Update plugins/module_utils/database.py
Co-Authored-By: Thomas O'Donnell <andytom@users.noreply.github.com>
* Update plugins/module_utils/database.py
Co-Authored-By: Thomas O'Donnell <andytom@users.noreply.github.com>
* fix
Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
2020-04-12 13:16:44 +02:00
Ansible Core Team
aebc1b03fd
Initial commit
2020-03-09 09:11:07 +00:00