Replace noDNS by dns in plugin

Just to avoid double negation.
This commit is contained in:
Martynas Pumputis authored and Bryan Boreham committed 2017-04-12 13:05:40 +00:00
1 parent 09606db9c3
commit 1a3537a8f4
4 files changed
+12 -12

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ func (w *watcher) ContainerStarted(id string) {
continue
}
if network.isOurs {
if !w.driver.noDNS {
if w.driver.dns {
fqdn := fmt.Sprintf("%s.%s", info.Config.Hostname, info.Config.Domainname)
if err := w.weave.RegisterWithDNS(id, fqdn, net.IPAddress); err != nil {
w.driver.warn("ContainerStarted", "unable to register %s with weaveDNS: %s", id, err)