From fa202d512c9b37da58efafee56058e1530deb2fe Mon Sep 17 00:00:00 2001 From: Nathaniel Clark Date: Tue, 16 Jun 2020 11:05:57 -0400 Subject: [PATCH] Fix MountLustreFilesystemsJob Signed-off-by: Nathaniel Clark --- chroma_core/models/client_mount.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/chroma_core/models/client_mount.py b/chroma_core/models/client_mount.py index e260e09c07..e5830e5d42 100644 --- a/chroma_core/models/client_mount.py +++ b/chroma_core/models/client_mount.py @@ -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)]