salt-ext-modules-vmware icon indicating copy to clipboard operation
salt-ext-modules-vmware copied to clipboard

Implement JSON encoder provided by pyvmomi

Open abhi1693 opened this issue 2 years ago • 0 comments

In several places, the code breaks due to issues with serialization. My setup utilizes salt-api which returns the data as a JSON object. Most functions are unable to serialize the data and crash.

Example: vmware_datacenter.get

image

This issue can be avoided by adding the JSON serializer provided by pyvmomi. It was implemented at https://github.com/vmware/pyvmomi/pull/732/files and works well

abhi1693 avatar Jun 22 '22 21:06 abhi1693