mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 10:51:24 -07:00
vmware_guest: tests for createvm+modifyvm tasks (#30959)
* Save the serialized values instead of their types * Add tests for creating and modifying VMs without using a template * Remove blank line * Add tests for vm deletion
This commit is contained in:
parent
04bfbb14d6
commit
0dd3a61a75
3 changed files with 184 additions and 1 deletions
|
@ -618,7 +618,10 @@ def serialize_spec(clonespec):
|
|||
for xe in xo:
|
||||
data[x].append(serialize_spec(xe))
|
||||
elif issubclass(xt, string_types + integer_types + (float, bool)):
|
||||
data[x] = to_text(xt)
|
||||
if issubclass(xt, integer_types):
|
||||
data[x] = int(xo)
|
||||
else:
|
||||
data[x] = to_text(xo)
|
||||
elif issubclass(xt, bool):
|
||||
data[x] = xo
|
||||
elif issubclass(xt, dict):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue