vmware/rbvmomi — pull request #36 by tacho (2014-03-31 08:52:56+00:00)
Title: Implement KeyAnyValue serialization. Fix integer/long serialization.

Add support for serializing KeyAnyValue objects. Also fix integer/long serialization/deserialization.

This allows operations with Host Profiles to succeed. Without this fix, operations like editing a host profile, or applying it - fail due to the object containing KeyAnyValue items, which rbvmomi doesn't know how to serialize to XML at all. Another issue was that the deserializer casts every integer to a long, which for the most part works, but the host profile API does not like that. The fixes for int/long were only done in the new deserializer.

Rake tests pass, and I've tested a lot of other vSphere operations to verify that this doesn't break anything, to the best of my knowledge.