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: v17.1.0~1551^2~43 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=42a8d383e6b6da46cc4ec011f491f9221b48ec4d;p=ceph.git mgr/nfs: Add some compatibility to mgr/dashboard provide default values for `squash` and `security_label` Signed-off-by: Sebastian Wagner --- diff --git a/src/pybind/mgr/nfs/export_utils.py b/src/pybind/mgr/nfs/export_utils.py index e9b5c7936323..4efe1dc8fac1 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]),