mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 14:27:23 +00:00
Improve requested user/host validation for ssh certificate template
This commit is contained in:
+1
-1
@@ -130,7 +130,7 @@ export const sshCertificateTemplateServiceFactory = ({
|
||||
|
||||
if (name) {
|
||||
const existingTemplate = await sshCertificateTemplateDAL.getByName(name, actorOrgId);
|
||||
if (existingTemplate) {
|
||||
if (existingTemplate && existingTemplate.id !== id) {
|
||||
throw new BadRequestError({
|
||||
message: `SSH certificate template with name ${name} already exists`
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user