Skip to content

Commit be7cf8d

Browse files
nameearlybrandond
authored andcommitted
add lost return
Signed-off-by: nameearly <2741313455@qq.com> (cherry picked from commit 0f05ca2) Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
1 parent 33a35e9 commit be7cf8d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/cluster/cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func (c *Cluster) startEtcdProxy(ctx context.Context) error {
126126
}
127127
_, nodeIPs, err := util.GetHostnameAndIPs(cmds.AgentConfig.NodeName, cmds.AgentConfig.NodeIP.Value())
128128
if err != nil {
129-
errors.WithMessage(err, "failed to get node name and addresses")
129+
return errors.WithMessage(err, "failed to get node name and addresses")
130130
}
131131

132132
defaultURL.Host = net.JoinHostPort(defaultURL.Hostname(), "2379")

0 commit comments

Comments
 (0)