diff --git a/net/dns/manager_linux.go b/net/dns/manager_linux.go index b9d3477d8..b244d432d 100644 --- a/net/dns/manager_linux.go +++ b/net/dns/manager_linux.go @@ -41,7 +41,7 @@ func NewOSConfigurator(logf logger.Logf, interfaceName string) (OSConfigurator, return newNMManager(interfaceName) case "resolvconf": if err := resolvconfSourceIsNM(bs); err == nil { - if err := dbusPing("org.freedesktop.NetworkManager", "/org/freedesktop/NetworkManager/DnsManager"); err != nil { + if err := dbusPing("org.freedesktop.NetworkManager", "/org/freedesktop/NetworkManager/DnsManager"); err == nil { return newNMManager(interfaceName) } }