From: Jos Collin Date: Wed, 3 Oct 2018 10:52:51 +0000 (+0530) Subject: pybind/mgr: identify invalid fs X-Git-Tag: v14.0.1~102^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=52fb7a9f6ac2e6b59fd354b554fc8c024dcd22fb;p=ceph.git pybind/mgr: identify invalid fs Identify invalid fs in 'fs status' output. Signed-off-by: Jos Collin --- diff --git a/src/pybind/mgr/status/module.py b/src/pybind/mgr/status/module.py index 888e6db58ec22..4959fe0574ef3 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'])