From 42a8d383e6b6da46cc4ec011f491f9221b48ec4d Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Wed, 2 Jun 2021 12:42:28 +0200 Subject: [PATCH] mgr/nfs: Add some compatibility to mgr/dashboard provide default values for `squash` and `security_label` Signed-off-by: Sebastian Wagner --- src/pybind/mgr/nfs/export_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/nfs/export_utils.py b/src/pybind/mgr/nfs/export_utils.py index e9b5c7936323a..4efe1dc8fac18 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]), -- 2.39.5