From 98f5f913a795a602d7e7d140fb9734816e705fa9 Mon Sep 17 00:00:00 2001 From: Volker Theile Date: Thu, 9 Jan 2020 11:46:48 +0100 Subject: [PATCH] mgr/dashboard: Cleanup feature toggle status output Modify status output from Feature 'nfs': '' to Feature 'nfs': Signed-off-by: Volker Theile --- src/pybind/mgr/dashboard/plugins/feature_toggles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/plugins/feature_toggles.py b/src/pybind/mgr/dashboard/plugins/feature_toggles.py index 6428687d4870..3227a05b1812 100644 --- a/src/pybind/mgr/dashboard/plugins/feature_toggles.py +++ b/src/pybind/mgr/dashboard/plugins/feature_toggles.py @@ -96,7 +96,7 @@ class FeatureToggles(I.CanMgr, I.Setupable, I.HasOptions, else: for feature in features or [f.value for f in Features]: enabled = mgr.get_module_option(self.OPTION_FMT.format(feature)) - msg += ["Feature '{}': '{}'".format( + msg += ["Feature '{}': {}".format( feature, 'enabled' if enabled else 'disabled')] return ret, '\n'.join(msg), '' -- 2.47.3