1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00
Vincent Hagen e32bdc053f NEW FEATURE: Order changes based on the record dependencies (#2419)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
Co-authored-by: Tom Limoncelli <tal@whatexit.org>
2023-08-29 14:00:09 -04:00

12 lines
313 B
Go

package dnsgraph
func CreateDependencies(dependencyFQDNs []string, dependencyType DependencyType) []Dependency {
var dependencies []Dependency
for _, dependency := range dependencyFQDNs {
dependencies = append(dependencies, Dependency{NameFQDN: dependency, Type: dependencyType})
}
return dependencies
}