1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

symbolize extract keys

This commit is contained in:
Rodrigo Estebanez 2013-07-09 15:00:15 +02:00
parent 0f7234734d
commit 25addd8029

View file

@ -10,11 +10,11 @@ class VcloudngParser < Fog::Parsers::Base
if attributes_xml.first.is_a?(Array)
until attributes_xml.first.empty?
attribute = attributes_xml.first.shift
attributes[attribute.localname] = attribute.value
attributes[attribute.localname.to_sym] = attribute.value
end
else
attribute = attributes_xml.shift
attributes[attribute.localname] = attribute.value
attributes[attribute.localname.to_sym] = attribute.value
end
end
attributes