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

[ovirt|compute] #instance_variables returns Symbols in 1.9.2+.

This commit is contained in:
Dan Peterson 2012-02-08 18:45:12 -04:00
parent a7a1012102
commit caf949af56

View file

@ -33,7 +33,7 @@ module Fog
def ovirt_attrs obj
opts = {:raw => obj}
obj.instance_variables.each do |v|
key = v.gsub("@","").to_sym
key = v.to_s.gsub("@","").to_sym
value = obj.instance_variable_get(v)
#ignore nil values
next if value.nil?