lib/vagabond/cookbooks/lxc/libraries/lxc_file_config.rb in vagabond-0.2.0 vs lib/vagabond/cookbooks/lxc/libraries/lxc_file_config.rb in vagabond-0.2.2

- old
+ new

@@ -5,9 +5,12 @@ class << self def generate_config(resource) 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| 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]