Skip to content

Commit

Permalink
Use new method for retrieving datasets of paths
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicaj committed Dec 30, 2024
1 parent 060b63a commit ef12c69
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/middlewared/middlewared/plugins/apps/resources.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from middlewared.schema import accepts, Bool, Dict, Int, List, Ref, returns, Str
from middlewared.service import CallError, private, Service
from middlewared.service import private, Service
from middlewared.plugins.zfs_.utils import paths_to_datasets_impl

from middlewared.utils.gpu import get_nvidia_gpus

Expand Down Expand Up @@ -151,4 +152,4 @@ async def get_hostpaths_datasets(self, app_name):
if volume['source'].startswith(f'{IX_APPS_MOUNT_PATH}/') is False
]

return await self.middleware.call('zfs.dataset.paths_to_datasets', host_paths)
return await self.middleware.run_in_thread(paths_to_datasets_impl, host_paths)

0 comments on commit ef12c69

Please sign in to comment.