don't fail when bdir option not provided
This commit is contained in:
parent
577cb4592c
commit
d6e0be1f4e
1 changed files with 2 additions and 1 deletions
|
@ -72,7 +72,8 @@ module LXC
|
||||||
end
|
end
|
||||||
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)
|
if Dir.exists?(host_entry)
|
||||||
src_path = File.absolute_path(host_entry)
|
src_path = File.absolute_path(host_entry)
|
||||||
dst_path = File.join(dest_path, 'rootfs', container_entry)
|
dst_path = File.join(dest_path, 'rootfs', container_entry)
|
||||||
|
|
Loading…
Add table
Reference in a new issue