From add29e27f4002ecc42c0dd56eead60d577afc262 Mon Sep 17 00:00:00 2001 From: Patrick Nawracay Date: Thu, 7 Jun 2018 18:09:42 +0200 Subject: [PATCH] mgr/dashboard/cleanup: Remove unnecessary parentheses Signed-off-by: Patrick Nawracay --- src/pybind/mgr/dashboard/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/settings.py b/src/pybind/mgr/dashboard/settings.py index fb1e1370466c8..4d1153e9e283b 100644 --- a/src/pybind/mgr/dashboard/settings.py +++ b/src/pybind/mgr/dashboard/settings.py @@ -143,7 +143,8 @@ def options_schema_list(): def handle_option_command(cmd): if cmd['prefix'] not in _OPTIONS_COMMAND_MAP: - return (-errno.ENOSYS, '', "Command not found '{}'".format(cmd['prefix'])) + return -errno.ENOSYS, '', "Command not found '{}'".format(cmd['prefix']) + opt = _OPTIONS_COMMAND_MAP[cmd['prefix']] if cmd['prefix'].startswith('dashboard reset'): -- 2.39.5