Skip to content

Commit

Permalink
proxmox_kvm: deprecate option proxmox_default_behavior (ansible-colle…
Browse files Browse the repository at this point in the history
…ctions#7377)

* proxmox_kvm: deprecae option proxmox_default_behavior

* add changelog frag
  • Loading branch information
russoz authored and Eric Trombly committed Oct 25, 2023
1 parent 020cf99 commit 7295d9b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/7377-proxmox-kvm-deprecate-flag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
deprecated_features:
- proxmox_kvm - deprecate the option ``proxmox_default_behavior`` (https://github.com/ansible-collections/community.general/pull/7377).
7 changes: 6 additions & 1 deletion plugins/modules/proxmox_kvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@
- 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:
Expand Down Expand Up @@ -1272,7 +1273,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)

Expand Down

0 comments on commit 7295d9b

Please sign in to comment.