mirror of
https://github.com/rancher/rke.git
synced 2025-09-12 13:18:47 +00:00
Don't mask error
This commit is contained in:
@@ -29,7 +29,10 @@ const (
|
||||
|
||||
func GeneratePlan(ctx context.Context, rkeConfig *v3.RancherKubernetesEngineConfig, hostsInfoMap map[string]types.Info) (v3.RKEPlan, error) {
|
||||
clusterPlan := v3.RKEPlan{}
|
||||
myCluster, _ := ParseCluster(ctx, rkeConfig, "", "", nil, nil, nil)
|
||||
myCluster, err := ParseCluster(ctx, rkeConfig, "", "", nil, nil, nil)
|
||||
if err != nil {
|
||||
return clusterPlan, err
|
||||
}
|
||||
// rkeConfig.Nodes are already unique. But they don't have role flags. So I will use the parsed cluster.Hosts to make use of the role flags.
|
||||
uniqHosts := hosts.GetUniqueHostList(myCluster.EtcdHosts, myCluster.ControlPlaneHosts, myCluster.WorkerHosts)
|
||||
for _, host := range uniqHosts {
|
||||
|
Reference in New Issue
Block a user