2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-08-29 05:18:08 +00:00

Fix dotted hosts update

This commit is contained in:
Aravindh-Raju 2022-10-25 10:56:16 +05:30
parent 9e0a38d3b3
commit dd6f1ba008
No known key found for this signature in database
GPG Key ID: 6B4D566AC36626F6

View File

@ -169,14 +169,13 @@ class RecordSetService(
isRecordTypeAllowed = checkIfInAllowedRecordType(zone, dottedHostsConfig, rsForValidations) isRecordTypeAllowed = checkIfInAllowedRecordType(zone, dottedHostsConfig, rsForValidations)
isRecordTypeAndUserAllowed = isAllowedUser && isRecordTypeAllowed isRecordTypeAndUserAllowed = isAllowedUser && isRecordTypeAllowed
allowedDotsLimit = getAllowedDotsLimit(zone, dottedHostsConfig) allowedDotsLimit = getAllowedDotsLimit(zone, dottedHostsConfig)
recordFqdnDoesNotAlreadyExist <- recordFQDNDoesNotExist(rsForValidations, zone).toResult[Boolean]
_ <- typeSpecificValidations( _ <- typeSpecificValidations(
rsForValidations, rsForValidations,
existingRecordsWithName, existingRecordsWithName,
zone, zone,
Some(existing), Some(existing),
approvedNameServers, approvedNameServers,
recordFqdnDoesNotAlreadyExist, true,
allowedZoneList, allowedZoneList,
isRecordTypeAndUserAllowed, isRecordTypeAndUserAllowed,
allowedDotsLimit allowedDotsLimit