diff --git a/src/pybind/mgr/dashboard/settings.py b/src/pybind/mgr/dashboard/settings.py index fb1e1370466..4d1153e9e28 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'):