From 05ec4e0d8d2fe190d8ee05f16c6afe33cc2926ae Mon Sep 17 00:00:00 2001 From: Tomer Haskalovitch Date: Tue, 23 Dec 2025 23:21:15 +0200 Subject: [PATCH] mgr/dashboard: introduce NvmeofCLICommand's success_message_template parameter to allow meaningful success messages Signed-off-by: Tomer Haskalovitch --- src/pybind/mgr/dashboard/controllers/nvmeof.py | 2 +- src/pybind/mgr/dashboard/services/nvmeof_cli.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/controllers/nvmeof.py b/src/pybind/mgr/dashboard/controllers/nvmeof.py index 4b6372c30bf..0c040787ae8 100644 --- a/src/pybind/mgr/dashboard/controllers/nvmeof.py +++ b/src/pybind/mgr/dashboard/controllers/nvmeof.py @@ -463,7 +463,7 @@ else: adrfam=int(adrfam), ) ) - + @empty_response @NvmeofCLICommand("nvmeof listener del", model.RequestStatus, success_message_fn=build_listener_del_success_message) diff --git a/src/pybind/mgr/dashboard/services/nvmeof_cli.py b/src/pybind/mgr/dashboard/services/nvmeof_cli.py index 2b4bd829345..a4cda37a3d4 100644 --- a/src/pybind/mgr/dashboard/services/nvmeof_cli.py +++ b/src/pybind/mgr/dashboard/services/nvmeof_cli.py @@ -354,3 +354,4 @@ class NvmeofCLICommand(CLICommand): except Exception as e: # pylint: disable=broad-except return HandleCommandResult(-errno.EINVAL, '', str(e)) + -- 2.47.3