From 52fb7a9f6ac2e6b59fd354b554fc8c024dcd22fb Mon Sep 17 00:00:00 2001 From: Jos Collin Date: Wed, 3 Oct 2018 16:22:51 +0530 Subject: [PATCH] pybind/mgr: identify invalid fs Identify invalid fs in 'fs status' output. Signed-off-by: Jos Collin --- src/pybind/mgr/status/module.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pybind/mgr/status/module.py b/src/pybind/mgr/status/module.py index 888e6db58ec..4959fe0574e 100644 --- a/src/pybind/mgr/status/module.py +++ b/src/pybind/mgr/status/module.py @@ -233,6 +233,9 @@ class Module(MgrModule): output += rank_table.get_string() output += "\n" + pools_table.get_string() + "\n" + if not output and fs_filter is not None: + return errno.EINVAL, "", "Invalid filesystem: " + fs_filter + standby_table = PrettyTable(["Standby MDS"]) for standby in fsmap['standbys']: metadata = self.get_metadata('mds', standby['name']) -- 2.39.5