mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[PR #6646/621bedf7 backport][stable-7] redhat_subscription: officially deprecate "autosubscribe" (#6655)
redhat_subscription: officially deprecate "autosubscribe" (#6646)
The "autosubscribe" alias for the "auto_attach" option has been
deprecated for many years, although only in the documentation.
Officially mark it as deprecated also in the module parameters spec,
slating it for removal in 9.0.0.
(cherry picked from commit 621bedf751
)
Co-authored-by: Pino Toscano <ptoscano@redhat.com>
This commit is contained in:
parent
543792a68e
commit
d63658ea79
2 changed files with 21 additions and 2 deletions
|
@ -0,0 +1,6 @@
|
||||||
|
deprecated_features:
|
||||||
|
- |
|
||||||
|
redhat_subscription - the ``autosubscribe`` alias for the ``auto_attach`` option has been
|
||||||
|
deprecated for many years, although only in the documentation. Officially mark this alias
|
||||||
|
as deprecated, and it will be removed in community.general 9.0.0
|
||||||
|
(https://github.com/ansible-collections/community.general/pull/6646).
|
|
@ -122,7 +122,10 @@ options:
|
||||||
auto_attach:
|
auto_attach:
|
||||||
description:
|
description:
|
||||||
- Upon successful registration, auto-consume available subscriptions
|
- Upon successful registration, auto-consume available subscriptions
|
||||||
- Added in favor of deprecated autosubscribe in 2.5.
|
- |
|
||||||
|
Added in favor of the deprecated I(autosubscribe) option in
|
||||||
|
Ansible 2.5; please note that I(autosubscribe) will be removed in
|
||||||
|
community.general 9.0.0.
|
||||||
type: bool
|
type: bool
|
||||||
aliases: [autosubscribe]
|
aliases: [autosubscribe]
|
||||||
activationkey:
|
activationkey:
|
||||||
|
@ -1074,7 +1077,17 @@ def main():
|
||||||
'server_port': {},
|
'server_port': {},
|
||||||
'rhsm_baseurl': {},
|
'rhsm_baseurl': {},
|
||||||
'rhsm_repo_ca_cert': {},
|
'rhsm_repo_ca_cert': {},
|
||||||
'auto_attach': {'aliases': ['autosubscribe'], 'type': 'bool'},
|
'auto_attach': {
|
||||||
|
'type': 'bool',
|
||||||
|
'aliases': ['autosubscribe'],
|
||||||
|
'deprecated_aliases': [
|
||||||
|
{
|
||||||
|
'name': 'autosubscribe',
|
||||||
|
'version': '9.0.0',
|
||||||
|
'collection_name': 'community.general',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
'activationkey': {'no_log': True},
|
'activationkey': {'no_log': True},
|
||||||
'org_id': {},
|
'org_id': {},
|
||||||
'environment': {},
|
'environment': {},
|
||||||
|
|
Loading…
Reference in a new issue