diff --git a/pkg/publish/kind/write.go b/pkg/publish/kind/write.go index 55927fa9e6..7724d7f5eb 100644 --- a/pkg/publish/kind/write.go +++ b/pkg/publish/kind/write.go @@ -114,7 +114,7 @@ func getNodes() ([]nodes.Node, error) { return nil, err } if len(nodeList) == 0 { - return nil, fmt.Errorf("no nodes found for cluster %q", cluster.DefaultName) + return nil, fmt.Errorf("no nodes found for cluster %q", clusterName) } return nodeList, nil