]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix image size in nvmeof namespace create/update api
authorAfreen Misbah <afreen@ibm.com>
Fri, 7 Feb 2025 11:43:51 +0000 (17:13 +0530)
committerAfreen Misbah <afreen@ibm.com>
Mon, 17 Feb 2025 08:24:43 +0000 (13:54 +0530)
- Different name is used in POST and PATCH for `rbd_image_size`
- Using same name in both requests
- fixing typing issues in frontend

Fixes https://tracker.ceph.com/issues/69864

Signed-off-by: Afreen Misbah <afreen@ibm.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.ts

index 3dda1b83069f6b5f8e4a7c20e087f15ced1a3aae..55d016f550ccc76d28b0b95a8d8874082711f021 100644 (file)
@@ -184,11 +184,7 @@ export class NvmeofNamespacesFormComponent implements OnInit {
             nqn: this.subsystemNQN,
             nsid: this.nsid
           }),
-          call: this.nvmeofService.updateNamespace(
-            this.subsystemNQN,
-            this.nsid,
-            request as NamespaceUpdateRequest
-          )
+          call: this.nvmeofService.updateNamespace(this.subsystemNQN, this.nsid, request)
         });
       } else {
         action = this.taskWrapperService.wrapTaskAroundCall({