lib/elecksee/lxc_file_config.rb in elecksee-2.0.0 vs lib/elecksee/lxc_file_config.rb in elecksee-2.0.2
- old
+ new
@@ -90,10 +90,10 @@
def parse!
struct = LxcStruct.new
struct._set_state(:value_collapse => true)
File.read(path).split("\n").each do |line|
parts = line.split('=').map(&:strip)
- parts.last.replace("'#{parts.last}'")
+ parts.last.to_s.replace("'#{parts.last}'")
struct.instance_eval(parts.join(' = '))
end
@state = struct
end