mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
make sure that mapping is set to iterable
This commit is contained in:
parent
5d815e955f
commit
330d61cf00
1 changed files with 2 additions and 3 deletions
5
start.py
5
start.py
|
|
@ -287,9 +287,8 @@ def run_disk_mapping_commands(mongo_url):
|
|||
if not disk_mapping:
|
||||
return
|
||||
|
||||
for mapping in disk_mapping.get(low_platform):
|
||||
source, destination = mapping
|
||||
|
||||
mappings = disk_mapping.get(low_platform) or []
|
||||
for source, destination in mappings:
|
||||
args = ["subst", destination.rstrip('/'), source.rstrip('/')]
|
||||
_print("disk mapping args:: {}".format(args))
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue