浏览代码

Fix check code for --cluster-store and --cluster-advertise in config_unix.go

Signed-off-by: Wonjun Kim <wonjun.kim@navercorp.com>
Wonjun Kim 9 年之前
父节点
当前提交
4f671ae85e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      daemon/config_unix.go

+ 1 - 1
daemon/config_unix.go

@@ -123,7 +123,7 @@ func (config *Config) GetAllRuntimes() map[string]types.Runtime {
 }
 
 func (config *Config) isSwarmCompatible() error {
-	if config.IsValueSet("cluster-store") || config.IsValueSet("cluster-advertise") {
+	if config.ClusterStore != "" || config.ClusterAdvertise != "" {
 		return fmt.Errorf("--cluster-store and --cluster-advertise daemon configurations are incompatible with swarm mode")
 	}
 	if config.LiveRestore {