mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-10 17:48:25 +08:00
Merge pull request #877 from gravitl/hotfix_v0.11.0_wrong_error
change error
This commit is contained in:
commit
a6a4c8da1a
1 changed files with 2 additions and 2 deletions
|
@ -144,7 +144,7 @@ func NodeUpdate(client mqtt.Client, msg mqtt.Message) {
|
|||
if newNode.DNSOn != "yes" && shouldDNSChange && nodeCfg.Node.Interface != "" {
|
||||
ncutils.Log("settng DNS off")
|
||||
if err := removeHostDNS(ncutils.IsWindows()); err != nil {
|
||||
ncutils.Log("error removing netmaker profile from /etc/hosts " + dataErr.Error())
|
||||
ncutils.Log("error removing netmaker profile from /etc/hosts " + err.Error())
|
||||
}
|
||||
// _, err := ncutils.RunCmd("/usr/bin/resolvectl revert "+nodeCfg.Node.Interface, true)
|
||||
// if err != nil {
|
||||
|
@ -205,7 +205,7 @@ func UpdatePeers(client mqtt.Client, msg mqtt.Message) {
|
|||
}
|
||||
} else {
|
||||
if err := removeHostDNS(ncutils.IsWindows()); err != nil {
|
||||
ncutils.Log("error removing netmaker profile from /etc/hosts " + dataErr.Error())
|
||||
ncutils.Log("error removing netmaker profile from /etc/hosts " + err.Error())
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue