10.0.0: remove deprecated features (#8918)

* Remove pool option from redhat_subscription.

* Remove proxmox_default_behavior option from proxmox_kvm.

* Remove the logging option from ejabberd_user.

* Remove the ack_params_state_absent option from consul.

* irc: change defaults of use_tls and validate_certs to true.

* rhsm_repository: remove states present and absent.

* Re-add 'using'.

* Fix typo.
This commit is contained in:
Felix Fontein 2024-09-28 08:11:21 +03:00 committed by GitHub
parent 84e0190eee
commit fe18b05f08
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 29 additions and 368 deletions

View file

@ -36,11 +36,9 @@ options:
description:
- If state is equal to present or disabled, indicates the desired
repository state.
- |
Please note that V(present) and V(absent) are deprecated, and will be
removed in community.general 10.0.0; please use V(enabled) and
V(disabled) instead.
choices: [present, enabled, absent, disabled]
- In community.general 10.0.0 the states V(present) and V(absent) have been
removed. Please use V(enabled) and V(disabled) instead.
choices: [enabled, disabled]
default: "enabled"
type: str
name:
@ -240,7 +238,7 @@ def main():
module = AnsibleModule(
argument_spec=dict(
name=dict(type='list', elements='str', required=True),
state=dict(choices=['enabled', 'disabled', 'present', 'absent'], default='enabled'),
state=dict(choices=['enabled', 'disabled'], default='enabled'),
purge=dict(type='bool', default=False),
),
supports_check_mode=True,
@ -257,14 +255,6 @@ def main():
state = module.params['state']
purge = module.params['purge']
if state in ['present', 'absent']:
replacement = 'enabled' if state == 'present' else 'disabled'
module.deprecate(
'state=%s is deprecated; please use state=%s instead' % (state, replacement),
version='10.0.0',
collection_name='community.general',
)
repository_modify(module, rhsm, state, name, purge)