mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
* Send string instead of boolean to proxmox api
* Add changelog fragment.
* Update plugins/modules/cloud/misc/proxmox_kvm.py
Co-authored-by: castorsky <csky57@gmail.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: castorsky <csky57@gmail.com>
(cherry picked from commit b9d0864957)
Co-authored-by: Alexander Holzapfel <git@hlz.io>
This commit is contained in:
@@ -963,7 +963,7 @@ class ProxmoxKvmAnsible(ProxmoxAnsible):
|
||||
if 'agent' in kwargs:
|
||||
try:
|
||||
# The API also allows booleans instead of e.g. `enabled=1` for backward-compatibility.
|
||||
kwargs['agent'] = boolean(kwargs['agent'], strict=True)
|
||||
kwargs['agent'] = int(boolean(kwargs['agent'], strict=True))
|
||||
except TypeError:
|
||||
# Not something that Ansible would parse as a boolean.
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user