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:
parent
0f7234734d
commit
25addd8029
1 changed files with 2 additions and 2 deletions
|
@ -10,11 +10,11 @@ class VcloudngParser < Fog::Parsers::Base
|
||||||
if attributes_xml.first.is_a?(Array)
|
if attributes_xml.first.is_a?(Array)
|
||||||
until attributes_xml.first.empty?
|
until attributes_xml.first.empty?
|
||||||
attribute = attributes_xml.first.shift
|
attribute = attributes_xml.first.shift
|
||||||
attributes[attribute.localname] = attribute.value
|
attributes[attribute.localname.to_sym] = attribute.value
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
attribute = attributes_xml.shift
|
attribute = attributes_xml.shift
|
||||||
attributes[attribute.localname] = attribute.value
|
attributes[attribute.localname.to_sym] = attribute.value
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
attributes
|
attributes
|
||||||
|
|
Loading…
Add table
Reference in a new issue