From c50960c39e0897909caf7796ebbfeef5587223cf Mon Sep 17 00:00:00 2001 From: Afreen Misbah Date: Fri, 7 Feb 2025 17:13:51 +0530 Subject: [PATCH] mgr/dashboard: fix image size in nvmeof namespace create/update api - 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 --- .../nvmeof-namespaces-form.component.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.ts index 3dda1b83069f6..55d016f550ccc 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.ts @@ -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({ -- 2.39.5