lib/fog/terremark/parsers/shared/get_organization.rb in fog-0.3.29 vs lib/fog/terremark/parsers/shared/get_organization.rb in fog-0.3.30

- old
+ new

@@ -13,11 +13,16 @@ super case name when 'Link' link = {} until attributes.empty? - link[attributes.shift] = attributes.shift - end + if attributes.first.is_a?(Array) + attribute = attributes.shift + link[attribute.first] = attribute.last + else + link[attributes.shift] = attributes.shift + end + end @response['Links'] << link when 'Org' org = {} until attributes.empty? if attributes.first.is_a?(Array)