mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00: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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user