Skip to content

Commit

Permalink
Merge pull request #48316 from rhcs-dashboard/wip-57691-pacific
Browse files Browse the repository at this point in the history
pacific: mgr/dashboard: handle the cephfs permission issue in nfs exports

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
  • Loading branch information
nizamial09 committed Oct 31, 2022
2 parents 125d529 + 3cde06d commit d17829e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pybind/mgr/dashboard/controllers/nfs.py
Expand Up @@ -13,7 +13,8 @@
from .. import mgr
from ..security import Scope
from ..services.cephfs import CephFS
from ..services.exception import DashboardException, serialize_dashboard_exception
from ..services.exception import DashboardException, handle_cephfs_error, \
serialize_dashboard_exception
from . import APIDoc, APIRouter, BaseController, Endpoint, EndpointDoc, \
ReadPermission, RESTController, Task, UIRouter
from ._version import APIVersion
Expand Down Expand Up @@ -118,6 +119,7 @@ def list(self) -> List[Dict[str, Any]]:

return exports

@handle_cephfs_error()
@NfsTask('create', {'path': '{path}', 'fsal': '{fsal.name}',
'cluster_id': '{cluster_id}'}, 2.0)
@EndpointDoc("Creates a new NFS-Ganesha export",
Expand Down

0 comments on commit d17829e

Please sign in to comment.