From: Volker Theile Date: Thu, 9 Jan 2020 10:46:48 +0000 (+0100) Subject: mgr/dashboard: Cleanup feature toggle status output X-Git-Tag: v15.1.0~211^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F32569%2Fhead;p=ceph.git mgr/dashboard: Cleanup feature toggle status output Modify status output from Feature 'nfs': '' to Feature 'nfs': Signed-off-by: Volker Theile --- 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), ''