7cb581ed2c
Support podman-remote in ansible-test ( #75753 )
2022-03-09 15:59:29 -06:00
1ba3ead0a0
Update developing_modules_general_aci.rst ( #73925 )
2022-03-09 15:49:02 -05:00
0c514bcf54
ansible-test - Fix PS coverage --all generation.
2022-03-09 12:35:23 -08:00
6f445ca6e5
Remove obsolete Python 2.x controller code.
2022-03-08 16:32:06 -08:00
f68c66a3ef
Remove collections compat from controller code.
2022-03-08 16:11:40 -08:00
822fddd627
Fix yaml loader and compat.
2022-03-08 12:51:33 -08:00
f43c54d890
ansible-test - Update default containers to 5.7.0.
2022-03-08 12:51:10 -08:00
3d5637beec
Initial mypy sanity test support for core.
2022-03-08 09:26:14 -08:00
27923aad7e
Add inline type hint ignores.
2022-03-07 16:45:19 -08:00
2a2b7dc42a
Update include role to match the base class.
...
Use frozenset instead of tuple.
2022-03-07 16:45:03 -08:00
4867ac217b
Code cleanup for type hinting issues.
2022-03-07 13:24:39 -08:00
8063643b4c
Fix collection redirects for filter and test plugins ( #77210 )
...
* Fix collection redirects for jinja2 filters/tests
* Handle recursive redirects
Co-authored-by: Matt Martz <matt@sivel.net >
2022-03-07 15:39:56 -05:00
50d28de9ba
Make ansible_index.rst more readable ( #77225 )
2022-03-07 13:55:59 -05:00
7c81a652c0
Type hint fixes.
2022-03-07 10:26:40 -08:00
3a3c496ade
Remove obsolete Python 2.x compat code.
2022-03-07 09:21:46 -08:00
0c4c18bc04
Type hint fixes.
2022-03-04 17:09:50 -08:00
e6f63be7a4
Honor --quiet parameter properly in fish shell ( #77180 )
...
* The `^` stderr redirection is deprecated
* Setting `-q` for `setup.py` in `gen_egg_info` is redundant
2022-03-05 07:04:54 +10:00
8b2e628565
galaxy - Clean up type hints and imports.
2022-03-04 10:33:02 -08:00
0990c4ca7c
Extend validate-modules to also validate plugins ( #71734 )
...
* Let validate-modules also validate plugins.
* Support 'option' in 'cli'.
* Use DOCUMENTABLE_PLUGINS instead of UNDOCUMENTED_PLUGIN_TYPES.
* Support 'keyword', clean up error codes.
* Call settings.process_errors only once; remove __version__.
* Add changelog fragment.
2022-03-04 09:08:34 -05:00
7d234a40ee
Point to AH docs ( #77200 )
2022-03-04 02:33:31 -08:00
af2b1361ff
ansible-test - Simplify type hints.
2022-03-03 16:34:25 -08:00
ea66cf189b
Fix ansible console to respect ANSIBLE_STDOUT_CALLBACK ( #77182 )
...
* Fix ansible console to respect ANSIBLE_STDOUT_CALLBACK
This makes the ansible-console able to customize the stdout callback.
Ansible console currently uses statically minimal callback.
* Add changelog
* Move the fragment changelog in the right directory
2022-03-04 09:40:23 +10:00
871b2ca73a
Simplify existing type hints.
2022-03-03 14:26:47 -08:00
ccdb552d90
More type hint fixes for module_utils. ( #77198 )
...
* Type hint fixes for module_utils.
* Fix type hints in module_utils.facts.
2022-03-03 11:20:29 -08:00
86f00bd156
Update example to work ( #77191 )
...
`with_first_found` only takes a list of things, it's not like `tags`
where it can take a thing or a list of things.
Inspired by locally discovered breakage and then finding
https://github.com/ansible/ansible/issues/77136 where someone was also
doing this and getting into trouble.
2022-03-04 05:09:13 +10:00
e314f4e666
Add typing to module_utils.compat. ( #77197 )
2022-03-03 10:48:42 -08:00
5a1b891917
Additional type hinting cleanup. ( #77188 )
2022-03-02 16:10:44 -08:00
74a204e6f1
first_found: allow spaces in names ( #77141 )
...
* first_found: allow spaces in names
Fixes #77136
2022-03-02 16:16:47 -05:00
1286513947
module_utils - Fix type hinting issues.
2022-03-02 13:09:07 -08:00
8e45925415
hostname - Use base class on UnimplementedStrategy
...
This requires moving UnimplementedStrategy below BaseStrategy and Hostname below UnimplementedStrategy.
2022-03-02 12:14:10 -08:00
35ef2af0ce
Fix type hints and variable usage in modules. ( #77184 )
...
* Remove unused variables.
* Fix conflicting variable name.
* Add type hints.
2022-03-02 11:52:51 -08:00
6de04e8be6
Fix module exception handlers.
...
Exception handler variable names should not conflict with other variables.
Use Python 2.6+ exception handler syntax.
2022-03-02 11:34:11 -08:00
d31730d781
Fixes for type hinting issues. ( #77170 )
2022-03-01 17:14:26 -08:00
7b0fb114be
Data tagging and sidecar docs are delayed, and will be retargeted for 2.14 ( #77173 )
2022-03-01 11:37:55 -06:00
b667409d6d
ansible-test - Correct a typo in comments ( #77148 )
2022-03-01 16:04:38 +01:00
a06fa496d3
ansible-test - Code cleanup and refactoring. ( #77169 )
...
* Remove unnecessary PyCharm ignores.
* Ignore intentional undefined attribute usage.
* Add missing type hints. Fix existing type hints.
* Fix docstrings and comments.
* Use function to register completion handler.
* Pass strings to display functions.
* Fix CompositeAction handling of dest argument.
* Use consistent types in expressions/assignments.
* Use custom function to keep linters happy.
* Add missing raise for custom exception.
* Clean up key/value type handling in cloud plugins.
* Use dataclass instead of dict for results.
* Add custom type_guard function to check lists.
* Ignore return type that can't be checked (yet).
* Avoid changing types on local variables.
2022-02-28 14:37:09 -08:00
8291dbdf81
add accessibility guidelines to docs style guide ( #77145 )
...
Co-authored-by: Jill R <4121322+jillr@users.noreply.github.com >
2022-02-28 16:40:32 -05:00
27fe26edbf
Update setup_pexpect to prefer pip user installs.
...
This works around issues on RHEL 7.9 when an old version of pexpect is installed from an OS package.
2022-02-28 13:22:56 -08:00
7657caa072
Fix 'ansible-galaxy collection verify' to display new files/dirs ( #76690 )
...
* Fix 'ansible-galaxy collection verify' to report files/directories not listed in the FILES.json
* changelog
* Fix bug in 2.13+
2022-02-28 16:15:10 -05:00
0d4219f265
Fix IPs for ipaddr filter in user_guide ( #77151 )
...
* Fix IPs for ipaddr filter in user_guide
* Apply suggestions from code review
Co-authored-by: Sandra McCann <samccann@redhat.com >
2022-02-28 13:52:19 -05:00
28a278ee48
fix spelling error in details ( #77152 )
...
correct inventory_hostname spelling error in include_vars and set_fact
modules
Signed-off-by: jbpratt <jbpratt78@gmail.com >
2022-02-28 13:22:17 -05:00
c3999d89f4
Clarify docs for using tests as filters ( #77155 )
2022-02-28 13:21:03 -05:00
43c2c983cc
Fix type hints in galaxy.
2022-02-28 08:49:37 -08:00
68601601ce
Docsite: update communication.rst ( #77135 )
...
\
2022-02-25 10:26:59 -05:00
22ba18d7b0
add links to remote_user docs ( #77140 )
...
* add links to remote_user docs
* shorten link name
2022-02-25 02:59:11 -08:00
dc6b0d4857
ansible-test - Remove obsolete display of MAXFD.
...
Use of ``subprocess.MAXFD`` only worked on Python 2.x, which is no longer supported.
2022-02-24 14:12:56 -08:00
3f924b59f2
use same timeout for galaxy api interactions ( #77088 )
...
Also, bump the default. A number of people have reported problems with
this 20 second timeout for a couple of years on
https://github.com/ansible/galaxy/issues/2302
It is mentioned in the issue that resolving dns can sometimes take up to
30 seconds, and that this timeout includes dns resolution.
Includes a changelog message
2022-02-24 15:58:13 -05:00
4f48f375a0
parameters: handle blank values when argument is a list ( #77119 )
...
Fixes : #77108
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com >
2022-02-25 05:08:33 +10:00
d60efd9768
hostname module - fix TypeError in FileStrategy ( #77025 ) ( #77074 )
...
* Use file_get_content() to read the file containing the host name
2022-02-25 05:05:52 +10:00
6a7009a84f
use present tense in changelog example ( #77138 )
2022-02-24 11:05:02 -08:00