From: Afreen Misbah Date: Fri, 7 Feb 2025 11:43:51 +0000 (+0530) Subject: mgr/dashboard: fix image size in nvmeof namespace create/update api X-Git-Tag: v20.0.0~140^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c50960c39e0897909caf7796ebbfeef5587223cf;p=ceph.git 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 --- 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 3dda1b83069..55d016f550c 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({