]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #62598 from rhcs-dashboard/nvmf-subsys-ha-default
authorNizamudeen A <nia@redhat.com>
Wed, 2 Apr 2025 05:38:07 +0000 (11:08 +0530)
committerGitHub <noreply@github.com>
Wed, 2 Apr 2025 05:38:07 +0000 (11:08 +0530)
mgr/dashboard: enable ha by default on subsystem POST API

1  2 
src/pybind/mgr/dashboard/controllers/nvmeof.py
src/pybind/mgr/dashboard/openapi.yaml

index e32de917c04af9f5f7d35a4cbc562160ba6a9441,cdcef8cbfc25afaf31b89280266ce10a906f4d99..a22864442e32cec5ccac5fe0a04098daf1038eab
@@@ -167,11 -165,10 +167,11 @@@ else
                  "gw_group": Param(str, "NVMeoF gateway group", True, None),
              },
          )
 -        @NvmeofCLICommand("nvmeof subsystem add")
          @empty_response
 +        @NvmeofCLICommand("nvmeof subsystem add")
 +        @convert_to_model(model.RequestStatus)
          @handle_nvmeof_error
-         def create(self, nqn: str, enable_ha: bool, max_namespaces: int = 1024,
+         def create(self, nqn: str, enable_ha: bool = True, max_namespaces: int = 1024,
                     gw_group: Optional[str] = None):
              return NVMeoFClient(gw_group=gw_group).stub.create_subsystem(
                  NVMeoFClient.pb2.create_subsystem_req(
Simple merge