diff options
author | Felix Fontein <felix@fontein.de> | 2020-05-29 07:46:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-28 22:46:16 -0700 |
commit | 40f21dfd3c7699f5e333fed257da5f452b78f4b4 (patch) | |
tree | b7fd475176bc9e9ae1bc75af2bf1150e3fc60a00 /lib/ansible/module_utils/urls.py | |
parent | f5f3ba7ab5d5e3b0d462ed985f8b9d614f28583f (diff) | |
download | ansible-40f21dfd3c7699f5e333fed257da5f452b78f4b4.tar.gz |
Version source tagging (automatic and manual) for version_added and deprecation versions (#69680)
* Track collection for version_added.
Validate *all* version numbers in validate-modules.
For tagged version numbers (i.e. version_added), consider source collection to chose validation.
* Make tagging/untagging functions more flexible.
* Tag all versions in doc fragments.
* Tag all deprecation versions issued by code.
* Make Display.deprecated() understand tagged versions.
* Extend validation to enforce tagged version numbers.
* Tag versions in tests.
* Lint and fix test.
* Mention collection name in collection loader's deprecation/removal messages.
* Fix error IDs.
* Handle tagged dates in Display.deprecated().
* Also require that removed_at_date and deprecated_aliases.date are tagged.
* Also automatically tag/untag removed_at_date; fix sanity module removal version check.
* Improve error message when invalid version number is used (like '2.14' in collections).
Diffstat (limited to 'lib/ansible/module_utils/urls.py')
-rw-r--r-- | lib/ansible/module_utils/urls.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ansible/module_utils/urls.py b/lib/ansible/module_utils/urls.py index 69ae921c6f..16fd82d847 100644 --- a/lib/ansible/module_utils/urls.py +++ b/lib/ansible/module_utils/urls.py @@ -1528,7 +1528,8 @@ def url_argument_spec(): ''' return dict( url=dict(type='str'), - force=dict(type='bool', default=False, aliases=['thirsty'], deprecated_aliases=[dict(name='thirsty', version='2.13')]), + force=dict(type='bool', default=False, aliases=['thirsty'], + deprecated_aliases=[dict(name='thirsty', version='ansible.builtin:2.13')]), http_agent=dict(type='str', default='ansible-httpget'), use_proxy=dict(type='bool', default=True), validate_certs=dict(type='bool', default=True), |