From 80d160a4f4cfb49f863acbfaafc3003fae682408 Mon Sep 17 00:00:00 2001 From: Tomer Haskalovitch Date: Sun, 14 Sep 2025 09:10:22 +0300 Subject: [PATCH] mgr/dashboard: fix None force param handling in ns add_host so it won't raise exceptions Signed-off-by: Tomer Haskalovitch (cherry picked from commit 38f62c4a379bfbe0bc57ebee4fc1aa6661c75dca) --- src/pybind/mgr/dashboard/controllers/nvmeof.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/controllers/nvmeof.py b/src/pybind/mgr/dashboard/controllers/nvmeof.py index 7285b118783..4e7da5ad582 100644 --- a/src/pybind/mgr/dashboard/controllers/nvmeof.py +++ b/src/pybind/mgr/dashboard/controllers/nvmeof.py @@ -708,7 +708,7 @@ else: NVMeoFClient.pb2.namespace_add_host_req(subsystem_nqn=nqn, nsid=int(nsid), host_nqn=host_nqn, - force=str_to_bool(force)) + force=str_to_bool(force) if force else None) ) @ReadPermission -- 2.39.5