mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
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:
parent
84e0190eee
commit
fe18b05f08
10 changed files with 29 additions and 368 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue