[unpackfs] Be more resilient to globalStorage weirdness

- If no extraMount is defined, just don't mount anything
This commit is contained in:
Adriaan de Groot 2019-01-25 07:14:23 -05:00
parent 823b5e480e
commit 2d684bb385

View File

@ -61,6 +61,8 @@ def list_excludes(destination):
""" """
lst = [] lst = []
extra_mounts = globalstorage.value("extraMounts") extra_mounts = globalstorage.value("extraMounts")
if extra_mounts is None:
extra_mounts = []
for extra_mount in extra_mounts: for extra_mount in extra_mounts:
mount_point = extra_mount["mountPoint"] mount_point = extra_mount["mountPoint"]