From: Naman Munet Date: Fri, 21 Nov 2025 04:41:44 +0000 (+0530) Subject: mgr/dashboard: service creation fails if service name is same as service type X-Git-Tag: testing/wip-vshankar-testing-20251204.133709-debug^2~7^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=57d081d6b5efcbeac6c60e73d50aa5f1f8cab560;p=ceph-ci.git mgr/dashboard: service creation fails if service name is same as service type Fixes: https://tracker.ceph.com/issues/73948 Signed-off-by: Naman Munet --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.ts index eca5f2efc2c..41660df06a6 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.ts @@ -1166,7 +1166,7 @@ export class ServiceFormComponent extends CdForm implements OnInit { const serviceId: string = values['service_id']; let serviceName: string = serviceType; - if (_.isString(serviceId) && !_.isEmpty(serviceId) && serviceId !== serviceType) { + if (_.isString(serviceId) && !_.isEmpty(serviceId)) { serviceName = `${serviceType}.${serviceId}`; serviceSpec['service_id'] = serviceId; }