device operations are recursive if serialized (#35727)

(cherry picked from commit 0bb3c4379c)
This commit is contained in:
Abhijeet Kasurde 2018-02-07 10:32:57 +05:30 committed by GitHub
parent 61fe2efa48
commit 9a64ee4d87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -608,7 +608,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),