Skip to content

Commit

Permalink
PMM-13315 Remove forgotten prints.
Browse files Browse the repository at this point in the history
  • Loading branch information
JiriCtvrtka committed Oct 2, 2024
1 parent 278417a commit eac0660
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion api-tests/server/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,6 @@ func deleteServiceToken(t *testing.T, serviceAccountID, serviceTokenID int) {
}

func sanitizeSAName(name string) string {
fmt.Println(name)
if len(name) <= 185 {
return name
}
Expand Down
1 change: 0 additions & 1 deletion managed/services/grafana/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,6 @@ func (c *Client) createServiceAccount(ctx context.Context, role role, nodeName s
}

serviceAccountName := fmt.Sprintf("%s-%s", pmmServiceAccountName, nodeName)
fmt.Println(sanitizeSAName(serviceAccountName))
b, err := json.Marshal(serviceAccount{Name: sanitizeSAName(serviceAccountName), Role: role.String(), Force: reregister})
if err != nil {
return 0, errors.WithStack(err)
Expand Down
1 change: 0 additions & 1 deletion managed/services/grafana/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ func TestClient(t *testing.T) {
require.NoError(t, err)
nodeName := fmt.Sprintf("%s-%s", name, role)
serviceAccountID, err := c.createServiceAccount(ctx, role, nodeName, true, authHeaders)
fmt.Println(serviceAccountID)
require.NoError(t, err)
defer func() {
err := c.deleteServiceAccount(ctx, serviceAccountID, authHeaders)
Expand Down

0 comments on commit eac0660

Please sign in to comment.