Skip to content

Commit

Permalink
Update dockerspawner.py support mount type
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangnew committed Nov 20, 2023
1 parent 955e642 commit ffaa7c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dockerspawner/dockerspawner.py
Expand Up @@ -891,6 +891,8 @@ def _fmt(v):
args = dict(mount)
args["source"] = _fmt(mount["source"])
args["target"] = _fmt(mount["target"])
args["type"] = mount.get("type", "volume")
args["read_only"] = mount.get("read_only", False)
mounts.append(Mount(**args))
return mounts

Expand Down

0 comments on commit ffaa7c1

Please sign in to comment.