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:
parent
a7a1012102
commit
caf949af56
1 changed files with 1 additions and 1 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue