Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
[warden][fix] Use empty array if no bind mounts are specified in the …
Browse files Browse the repository at this point in the history
…repl

Change-Id: I4f1b1738b971f9ea32a9ce132ed332905d0e60de
  • Loading branch information
mpage committed Mar 21, 2012
1 parent 6d9a9d8 commit aaac696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion warden/lib/warden/container/linux.rb
Expand Up @@ -113,7 +113,7 @@ def do_copy_out(src_path, dst_path, owner=nil)
private

def sanitize_config(config)
bind_mounts = config.delete("bind_mounts")
bind_mounts = config.delete("bind_mounts") || []

# Raise when it is not an Array
if !bind_mounts.is_a?(Array)
Expand Down

0 comments on commit aaac696

Please sign in to comment.