mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
[PR #11167/19757b3a backport][stable-12] Add type hints to action and test plugins and to plugin utils; fix some bugs, and improve input validation (#11191)
Add type hints to action and test plugins and to plugin utils; fix some bugs, and improve input validation (#11167)
* Add type hints to action and test plugins and to plugin utils. Also fix some bugs and add proper input validation.
* Combine lines.
* Extend changelog fragment.
* Move task_vars initialization up.
---------
(cherry picked from commit 19757b3a4c)
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
15
changelogs/fragments/11167-typing.yml
Normal file
15
changelogs/fragments/11167-typing.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
minor_changes:
|
||||
- "iptables_state action plugin - add type hints (https://github.com/ansible-collections/community.general/pull/11167)."
|
||||
- "shutdown action plugin - add type hints (https://github.com/ansible-collections/community.general/pull/11167)."
|
||||
- "ansible_type plugin utils - add type hints (https://github.com/ansible-collections/community.general/pull/11167)."
|
||||
- "keys_filter.py plugin utils - add type hints (https://github.com/ansible-collections/community.general/pull/11167)."
|
||||
- "unsafe.py plugin utils - add type hints (https://github.com/ansible-collections/community.general/pull/11167)."
|
||||
- "a_module test plugin - add proper parameter checking and type hints (https://github.com/ansible-collections/community.general/pull/11167)."
|
||||
- "ansible_type test plugin - add type hints (https://github.com/ansible-collections/community.general/pull/11167)."
|
||||
- "fqdn_valid test plugin - add proper parameter checking, and add type hints (https://github.com/ansible-collections/community.general/pull/11167)."
|
||||
bugfixes:
|
||||
- "keys_filter.py plugin utils - fixed requirements check so that other sequences than lists and strings are checked,
|
||||
and corrected broken formatting during error reporting
|
||||
(https://github.com/ansible-collections/community.general/pull/11167)."
|
||||
- "ansible_type test plugin - fix parameter checking (https://github.com/ansible-collections/community.general/pull/11167)."
|
||||
- "ansible_type plugin utils - avoid potential concatenation of non-strings when ``alias`` has non-string values (https://github.com/ansible-collections/community.general/pull/11167)."
|
||||
Reference in New Issue
Block a user