lib/elecksee/lxc_file_config.rb in elecksee-1.0.14 vs lib/elecksee/lxc_file_config.rb in elecksee-1.0.16
- old
+ new
@@ -33,10 +33,10 @@
config = []
config << "lxc.utsname = #{resource[:utsname]}"
if(resource[:aa_profile])
config << "lxc.aa_profile = #{resource[:aa_profile]}"
end
- [resource.[:network]].flatten.each do |net_hash|
+ [resource[:network]].flatten.each do |net_hash|
nhsh = Mash.new(net_hash)
flags = nhsh.delete(:flags)
%w(type link).each do |k|
config << "lxc.network.#{k} = #{nhsh.delete(k)}" if nhsh[k]
end