mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-02-23 07:03:01 +08: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:
parent
9d0f9a1531
commit
a6536264b5
1 changed files with 1 additions and 0 deletions
|
@ -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, ",")
|
||||
|
||||
|
|
Loading…
Reference in a new issue