Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Commit

Permalink
Rework awkward if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
dekz committed Jan 31, 2014
1 parent 571433c commit 6a99827
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/rbvmomi/deserialization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ def initialize conn
end

def deserialize node, type=nil
if type_attr = node['type']
elsif node.attributes['type']
# Work around for 1.5.x which doesn't populate node['type']
# XXX what changed
type_attr = node['type']

# Work around for 1.5.x which doesn't populate node['type']
# XXX what changed
if node.attributes['type'] and not type_attr
type_attr = node.attributes['type'].value
end

Expand Down

0 comments on commit 6a99827

Please sign in to comment.