1
0
mirror of https://github.com/rancher/rke.git synced 2025-08-31 14:36:32 +00:00

Fix check for worker hosts

This commit is contained in:
galal-hussein
2018-01-20 00:23:39 +02:00
parent 523f3ce778
commit dfe8d8ce6a

View File

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