lib/elecksee/lxc_file_config.rb in elecksee-1.0.16 vs lib/elecksee/lxc_file_config.rb in elecksee-1.0.18

- old
+ new

@@ -7,10 +7,10 @@ class << self def convert_to_hash(thing) unless(thing.is_a?(Hash)) result = defined?(Mash) ? Mash.new : {} - thing.each do |k,v| + thing.to_hash.each do |k,v| result[k] = v.respond_to?(:keys) && v.respond_to?(:values) ? convert_to_hash(v) : v end end result || thing end