Browse code

fix docker daemon reload bug

Signed-off-by: bingshen.wbs <bingshen.wbs@alibaba-inc.com>

bingshen.wbs authored on 2017/02/15 11:58:09
Showing 1 changed files
... ...
@@ -1160,7 +1160,7 @@ func (daemon *Daemon) reloadClusterDiscovery(conf *config.Config) error {
1160 1160
 	}
1161 1161
 
1162 1162
 	// check discovery modifications
1163
-	if !config.ModifiedDiscoverySettings(daemon.configStore, newAdvertise, newClusterStore, conf.ClusterOpts) {
1163
+	if !config.ModifiedDiscoverySettings(daemon.configStore, newClusterStore, newAdvertise, conf.ClusterOpts) {
1164 1164
 		return nil
1165 1165
 	}
1166 1166