Skip to content

Commit

Permalink
Make sure we properly retrieve app volume dataset (#14552)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicaj committed Sep 20, 2024
1 parent 3c8be3d commit e192b9d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/middlewared/middlewared/plugins/apps/crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,4 +358,8 @@ def get_app_volume_ds(self, app_name):
self.middleware.call_sync('docker.config')['dataset'], 'app_mounts', app_name
)
with contextlib.suppress(InstanceNotFound):
return self.middleware.call_sync('pool.dataset.get_instance_quick', apps_volume_ds)['id']
return self.middleware.call_sync(
'zfs.dataset.get_instance', apps_volume_ds, {
'extra': {'retrieve_children': False, 'retrieve_properties': False}
}
)['id']

0 comments on commit e192b9d

Please sign in to comment.