From: Sebastian Wagner Date: Wed, 2 Jun 2021 10:42:28 +0000 (+0200) Subject: mgr/nfs: Add some compatibility to mgr/dashboard X-Git-Tag: v16.2.7~116^2~108 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=27e4cc50dff38cfba7b4fd3ae9c8c64bd424b34d;p=ceph.git mgr/nfs: Add some compatibility to mgr/dashboard provide default values for `squash` and `security_label` Signed-off-by: Sebastian Wagner (cherry picked from commit 42a8d383e6b6da46cc4ec011f491f9221b48ec4d) --- diff --git a/src/pybind/mgr/nfs/export_utils.py b/src/pybind/mgr/nfs/export_utils.py index e9b5c793632..4efe1dc8fac 100644 --- a/src/pybind/mgr/nfs/export_utils.py +++ b/src/pybind/mgr/nfs/export_utils.py @@ -380,8 +380,8 @@ class Export: cluster_id, export_block['pseudo'], export_block['access_type'], - export_block['squash'], - export_block['security_label'], + export_block.get('squash', 'no_root_squash'), + export_block.get('security_label', True), protocols, transports, FSAL.from_fsal_block(fsal_blocks[0]),