mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
(cherry picked from commit 82d69bb871
)
Co-authored-by: Markus Reiter <me@reitermark.us>
This commit is contained in:
parent
6223b755e1
commit
2f24bcef8f
2 changed files with 9 additions and 6 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- "proxmox_kvm - fix exception when no ``agent`` argument is specified (https://github.com/ansible-collections/community.general/pull/5194)."
|
|
@ -963,6 +963,7 @@ class ProxmoxKvmAnsible(ProxmoxAnsible):
|
||||||
kwargs.update(kwargs[k])
|
kwargs.update(kwargs[k])
|
||||||
del kwargs[k]
|
del kwargs[k]
|
||||||
|
|
||||||
|
if 'agent' in kwargs:
|
||||||
try:
|
try:
|
||||||
# The API also allows booleans instead of e.g. `enabled=1` for backward-compatibility.
|
# The API also allows booleans instead of e.g. `enabled=1` for backward-compatibility.
|
||||||
kwargs['agent'] = boolean(kwargs['agent'], strict=True)
|
kwargs['agent'] = boolean(kwargs['agent'], strict=True)
|
||||||
|
|
Loading…
Reference in a new issue