1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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

Signed-off-by: Wonjun Kim <wonjun.kim@navercorp.com>
This commit is contained in:
Wonjun Kim 2016-06-29 02:23:35 +09:00
parent 2875c5404e
commit 4f671ae85e

View file

@ -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 {