summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-05-27 16:50:31 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-05-27 16:50:31 +0000
commit4d0ecf53471755d376405bcdee657435d3f31cdf (patch)
tree24985f5e761cc1b0000f8cb1406ebe5f426516b7
parentb79a48a481fbfdd10042964ca2eab16b9851d70f (diff)
downloadsandboxlib-4d0ecf53471755d376405bcdee657435d3f31cdf.tar.gz
Fix error when mount type is None (used for bind mounts)
-rw-r--r--sandboxlib/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sandboxlib/__init__.py b/sandboxlib/__init__.py
index 18c79b0..fc1c3cf 100644
--- a/sandboxlib/__init__.py
+++ b/sandboxlib/__init__.py
@@ -129,6 +129,8 @@ def validate_extra_mounts(extra_mounts):
if new_mount_entry[0] is None:
new_mount_entry[0] = ''
#new_mount_entry[0] = 'none'
+ if new_mount_entry[2] is None:
+ new_mount_entry[2] = ''
if new_mount_entry[3] is None:
new_mount_entry[3] = ''
new_extra_mounts.append(new_mount_entry)