Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
veloandy authored Apr 5, 2017
1 parent 5877f49 commit 5d8f9f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/rbvmomi/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ def obj2xml xml, name, type, is_array, o, attrs={}
when Integer
attrs['xsi:type'] = 'xsd:long' if expected == BasicTypes::AnyType
xml.tag! name, o.to_s, attrs
when Array
attrs['xsi:type'] = 'xsd:array' if expected == BasicTypes::AnyType
xml.tag! name, o.to_s, attrs
when Float
attrs['xsi:type'] = 'xsd:double' if expected == BasicTypes::AnyType
xml.tag! name, o.to_s, attrs
Expand Down

0 comments on commit 5d8f9f6

Please sign in to comment.