mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
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>
This commit is contained in:
@@ -32,6 +32,9 @@ func analyzeByRecordSet(cc *CompareConfig) ChangeList {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
instructions = orderByDependencies(instructions)
|
||||
|
||||
return instructions
|
||||
}
|
||||
|
||||
@@ -74,6 +77,8 @@ func analyzeByLabel(cc *CompareConfig) ChangeList {
|
||||
}
|
||||
}
|
||||
|
||||
instructions = orderByDependencies(instructions)
|
||||
|
||||
return instructions
|
||||
}
|
||||
|
||||
@@ -89,6 +94,9 @@ func analyzeByRecord(cc *CompareConfig) ChangeList {
|
||||
instructions = append(instructions, cs...)
|
||||
}
|
||||
}
|
||||
|
||||
instructions = orderByDependencies(instructions)
|
||||
|
||||
return instructions
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user