From: Patrick Nawracay Date: Thu, 7 Jun 2018 16:09:42 +0000 (+0200) Subject: mgr/dashboard/cleanup: Remove unnecessary parentheses X-Git-Tag: v14.0.1~1109^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=add29e27f4002ecc42c0dd56eead60d577afc262;p=ceph.git mgr/dashboard/cleanup: Remove unnecessary parentheses Signed-off-by: Patrick Nawracay --- 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'):