From b5b6f41692409fbe62f5320c64d0706f007d7a64 Mon Sep 17 00:00:00 2001 From: Felix Kunde Date: Wed, 13 Apr 2022 19:29:18 +0200 Subject: [PATCH] Update pkg/cluster/util.go --- pkg/cluster/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cluster/util.go b/pkg/cluster/util.go index be5da27a4..3b3eb28a5 100644 --- a/pkg/cluster/util.go +++ b/pkg/cluster/util.go @@ -275,7 +275,7 @@ func (c *Cluster) getTeamMembers(teamID string) ([]string, error) { teamInfo, statusCode, err := c.teamsAPIClient.TeamInfo(teamID, token) if err != nil { - if statusCode == 404 { + if statusCode == http.StatusNotFound { c.logger.Warningf("could not get team info for team %q: %v", teamID, err) } else { return nil, fmt.Errorf("could not get team info for team %q: %v", teamID, err)