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

Commit

Permalink
Fix MountLustreFilesystemsJob
Browse files Browse the repository at this point in the history
Signed-off-by: Nathaniel Clark <[email protected]>
  • Loading branch information
utopiabound authored and johnsonw committed Jun 16, 2020
1 parent f6da0c1 commit fa202d5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion chroma_core/models/client_mount.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,16 @@ def description(self):
def get_steps(self):
search = lambda cm: (cm.host == self.host and cm.state == "unmounted")
unmounted = ObjectCache.get(LustreClientMount, search)
args = dict(host=self.host, filesystems=[(m.filesystem.mount_path(), m.mountpoint) for m in unmounted])
args = dict(
host=self.host,
filesystems=[
(
ObjectCache.get_one(ManagedFilesystem, lambda mf, mtd=m: mf.name == mtd.filesystem).mount_path(),
m.mountpoint,
)
for m in unmounted
],
)
return [(MountLustreFilesystemsStep, args)]


Expand Down

0 comments on commit fa202d5

Please sign in to comment.