await mount_to_fs_handler in ShredDir

This commit is contained in:
Darryl Nixon 2023-07-16 11:55:41 -07:00
parent 5fcf743b2b
commit 155b3e2006

View file

@ -33,7 +33,7 @@ class ShredDir(AsyncObject):
self.contents = await self._get_contents() self.contents = await self._get_contents()
self.mount_points = set(m for m in self.get_mount_points()) self.mount_points = set(m for m in self.get_mount_points())
self.mount_points.add(self.mount_point) self.mount_points.add(self.mount_point)
self.fs_handler = mount_to_fs_handler(self.mount_point) self.fs_handler = await mount_to_fs_handler(self.mount_point)
self.byte_size = sum(item.byte_size for item in self.contents) self.byte_size = sum(item.byte_size for item in self.contents)
async def _get_contents(self) -> List: async def _get_contents(self) -> List: