diff --git a/lib/rbvmomi/connection.rb b/lib/rbvmomi/connection.rb index 378a3e65..03094756 100644 --- a/lib/rbvmomi/connection.rb +++ b/lib/rbvmomi/connection.rb @@ -167,7 +167,7 @@ def obj2xml xml, name, type, is_array, o, attrs={} xml.tag! name, o.to_s, attrs end when Integer - attrs['xsi:type'] = 'xsd:long' if expected == BasicTypes::AnyType + attrs['xsi:type'] = 'xsd:int' if expected == BasicTypes::AnyType xml.tag! name, o.to_s, attrs when Float attrs['xsi:type'] = 'xsd:double' if expected == BasicTypes::AnyType