mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[PR #6836/c34a2271 backport][stable-7] proxmox: deprecate old compatibility feature flag (#6851)
proxmox: deprecate old compatibility feature flag (#6836)
* proxmox: deprecate old compatibility feature flag
* add changelog frag
* bump deprecation to 10
(cherry picked from commit c34a22717e
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
f8d0d07fed
commit
1c8fbed36c
2 changed files with 8 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
|||
deprecated_features:
|
||||
- proxmox - old feature flag ``proxmox_default_behavior`` will be removed in community.general 10.0.0 (https://github.com/ansible-collections/community.general/pull/6836).
|
|
@ -183,6 +183,10 @@ options:
|
|||
are used when the values are not explicitly specified by the user. The new default is V(no_defaults),
|
||||
which makes sure these options have no defaults.
|
||||
- This affects the O(disk), O(cores), O(cpus), O(memory), O(onboot), O(swap), and O(cpuunits) options.
|
||||
- >
|
||||
This parameter is now B(deprecated) and it will be removed in community.general 10.0.0.
|
||||
By then, the module's behavior should be to not set default values, equivalent to V(no_defaults).
|
||||
If a consistent set of defaults is needed, the playbook or role should be responsible for setting it.
|
||||
type: str
|
||||
default: no_defaults
|
||||
choices:
|
||||
|
@ -621,7 +625,8 @@ def main():
|
|||
description=dict(type='str'),
|
||||
hookscript=dict(type='str'),
|
||||
timezone=dict(type='str'),
|
||||
proxmox_default_behavior=dict(type='str', default='no_defaults', choices=['compatibility', 'no_defaults']),
|
||||
proxmox_default_behavior=dict(type='str', default='no_defaults', choices=['compatibility', 'no_defaults'],
|
||||
removed_in_version='9.0.0', removed_from_collection='community.general'),
|
||||
clone=dict(type='int'),
|
||||
clone_type=dict(default='opportunistic', choices=['full', 'linked', 'opportunistic']),
|
||||
tags=dict(type='list', elements='str')
|
||||
|
|
Loading…
Reference in a new issue