From dfe8d8ce6a0277f780b8909df8a6f3378d86532b Mon Sep 17 00:00:00 2001 From: galal-hussein Date: Sat, 20 Jan 2018 00:23:39 +0200 Subject: [PATCH] Fix check for worker hosts --- cluster/validation.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster/validation.go b/cluster/validation.go index 3663090f..78939470 100644 --- a/cluster/validation.go +++ b/cluster/validation.go @@ -12,8 +12,8 @@ func (c *Cluster) ValidateCluster() error { if len(c.ControlPlaneHosts) == 0 { return fmt.Errorf("Cluster must have at least one control plane host") } - if len(c.WorkerHosts) == 0 { - return fmt.Errorf("Cluster must have at least one worker plane host") + if len(c.EtcdHosts) == 0 { + return fmt.Errorf("Cluster must have at least one etcd plane host") } // validate hosts options