mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
sort returned nameservers (#369)
The API isn't sorting the name servers so even when they match they would report being different. This will prevent it trying to update them every time Signed-off-by: Amy Aronsohn <WagThatTail@Me.com>
This commit is contained in:
committed by
Craig Peterson
parent
9d0f9a1531
commit
a6536264b5
@@ -147,6 +147,7 @@ func (c *DnsimpleApi) GetRegistrarCorrections(dc *models.DomainConfig) ([]*model
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
sort.Strings(nameServers)
|
||||
|
||||
actual := strings.Join(nameServers, ",")
|
||||
|
||||
|
Reference in New Issue
Block a user