From 4f671ae85e62d0b413f913b1289100ae7cc45972 Mon Sep 17 00:00:00 2001 From: Wonjun Kim Date: Wed, 29 Jun 2016 02:23:35 +0900 Subject: [PATCH] Fix check code for --cluster-store and --cluster-advertise in config_unix.go Signed-off-by: Wonjun Kim --- daemon/config_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/config_unix.go b/daemon/config_unix.go index e02ad7ff7a..deaf8c6732 100644 --- a/daemon/config_unix.go +++ b/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 {