don't fail when bdir option not provided

This commit is contained in:
Akshay Karle 2015-11-18 18:59:10 -03:00
parent 577cb4592c
commit d6e0be1f4e

View file

@ -72,7 +72,8 @@ module LXC
end
end
opts[:bdir].each do |host_entry, container_entry|
bind_directories = opts[:bdir].nil? ? [] : opts[:bdir]
bind_directories.each do |host_entry, container_entry|
if Dir.exists?(host_entry)
src_path = File.absolute_path(host_entry)
dst_path = File.join(dest_path, 'rootfs', container_entry)