Replace noDNS by dns in plugin
Just to avoid double negation.
This commit is contained in:
1 parent
09606db9c3
commit
1a3537a8f4
4 files changed
+12
-12
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user