]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Cleanup feature toggle status output 32569/head
authorVolker Theile <vtheile@suse.com>
Thu, 9 Jan 2020 10:46:48 +0000 (11:46 +0100)
committerVolker Theile <vtheile@suse.com>
Thu, 9 Jan 2020 10:46:48 +0000 (11:46 +0100)
Modify status output from
Feature 'nfs': '<STATE>'
to
Feature 'nfs': <STATE>

Signed-off-by: Volker Theile <vtheile@suse.com>
src/pybind/mgr/dashboard/plugins/feature_toggles.py

index 6428687d48702e89991ff1fa8c7dae57562c5021..3227a05b1812a6b5472e152f5329f745a926cdf8 100644 (file)
@@ -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), ''