Skip to content

Commit 7698aa3

Browse files
Correct cluster name in error message when no nodes are found
1 parent 150ff44 commit 7698aa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/publish/kind/write.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func getNodes() ([]nodes.Node, error) {
114114
return nil, err
115115
}
116116
if len(nodeList) == 0 {
117-
return nil, fmt.Errorf("no nodes found for cluster %q", cluster.DefaultName)
117+
return nil, fmt.Errorf("no nodes found for cluster %q", clusterName)
118118
}
119119

120120
return nodeList, nil

0 commit comments

Comments
 (0)