device operations are recursive if serialized

This commit is contained in:
James Tanner 2017-09-25 14:33:11 -04:00 committed by jctanner
parent d40eff720c
commit 0bb3c4379c

View file

@ -601,7 +601,7 @@ def serialize_spec(clonespec):
elif isinstance(xo, vim.vm.device.VirtualDisk):
data[x] = serialize_spec(xo)
elif isinstance(xo, vim.vm.device.VirtualDeviceSpec.FileOperation):
data[x] = serialize_spec(xo)
data[x] = to_text(xo)
elif isinstance(xo, vim.Description):
data[x] = {
'dynamicProperty': serialize_spec(xo.dynamicProperty),