proxmox_kvm: deprecate option proxmox_default_behavior (#7377)

* proxmox_kvm: deprecae option proxmox_default_behavior

* add changelog frag
pull/7397/head
Alexei Znamensky 2023-10-12 03:21:09 +13:00 committed by GitHub
parent 479e7df687
commit e07f5e2f40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,2 @@
deprecated_features:
- proxmox_kvm - deprecate the option ``proxmox_default_behavior`` (https://github.com/ansible-collections/community.general/pull/7377).

View File

@ -555,6 +555,7 @@ options:
- This affects the O(acpi), O(autostart), O(balloon), O(boot), O(cores), O(cpu), - This affects the O(acpi), O(autostart), O(balloon), O(boot), O(cores), O(cpu),
O(cpuunits), O(force), O(format), O(kvm), O(memory), O(onboot), O(ostype), O(sockets), O(cpuunits), O(force), O(format), O(kvm), O(memory), O(onboot), O(ostype), O(sockets),
O(tablet), O(template), and O(vga) options. O(tablet), O(template), and O(vga) options.
- This option is deprecated and will be removed in community.general 10.0.0.
type: str type: str
default: no_defaults default: no_defaults
choices: choices:
@ -1240,7 +1241,11 @@ def main():
virtio=dict(type='dict'), virtio=dict(type='dict'),
vmid=dict(type='int'), vmid=dict(type='int'),
watchdog=dict(), watchdog=dict(),
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_from_collection='community.general',
removed_in_version='10.0.0'),
) )
module_args.update(kvm_args) module_args.update(kvm_args)