From 4b70c7b717dcbd2a9eb732dfadbf551d5b19910c Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 14 Apr 2021 15:52:22 -0700 Subject: [PATCH] net/dns: fix inverted test for NetworkManager. Signed-off-by: David Anderson --- net/dns/manager_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }