Skip to content

Commit

Permalink
Fix typo in error message (#1416)
Browse files Browse the repository at this point in the history
  • Loading branch information
nemobis authored Oct 8, 2024
1 parent 4336cd6 commit 8356b63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rancher2/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ func splitRegistryID(id string) (namespaceID, projectID, resourceID string) {

func clusterIDFromProjectID(projectID string) (string, error) {
if projectID == "" || !strings.Contains(projectID, clusterProjectIDSeparator) {
return "", fmt.Errorf("[ERROR] Getting clusted ID from project ID: Bad project id format %s", projectID)
return "", fmt.Errorf("[ERROR] Getting cluster ID from project ID: Bad project id format %s", projectID)
}

return projectID[0:strings.Index(projectID, clusterProjectIDSeparator)], nil
Expand Down

0 comments on commit 8356b63

Please sign in to comment.