From e07f5e2f40f4e7afda648f2d2a0577eccab41914 Mon Sep 17 00:00:00 2001 From: Alexei Znamensky <103110+russoz@users.noreply.github.com> Date: Thu, 12 Oct 2023 03:21:09 +1300 Subject: [PATCH] proxmox_kvm: deprecate option proxmox_default_behavior (#7377) * proxmox_kvm: deprecae option proxmox_default_behavior * add changelog frag --- changelogs/fragments/7377-proxmox-kvm-deprecate-flag.yml | 2 ++ plugins/modules/proxmox_kvm.py | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/7377-proxmox-kvm-deprecate-flag.yml diff --git a/changelogs/fragments/7377-proxmox-kvm-deprecate-flag.yml b/changelogs/fragments/7377-proxmox-kvm-deprecate-flag.yml new file mode 100644 index 0000000000..cbf6df25fd --- /dev/null +++ b/changelogs/fragments/7377-proxmox-kvm-deprecate-flag.yml @@ -0,0 +1,2 @@ +deprecated_features: + - proxmox_kvm - deprecate the option ``proxmox_default_behavior`` (https://github.com/ansible-collections/community.general/pull/7377). diff --git a/plugins/modules/proxmox_kvm.py b/plugins/modules/proxmox_kvm.py index d352022440..9efd818e64 100644 --- a/plugins/modules/proxmox_kvm.py +++ b/plugins/modules/proxmox_kvm.py @@ -555,6 +555,7 @@ options: - 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(tablet), O(template), and O(vga) options. + - This option is deprecated and will be removed in community.general 10.0.0. type: str default: no_defaults choices: @@ -1240,7 +1241,11 @@ def main(): virtio=dict(type='dict'), vmid=dict(type='int'), 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)