mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-05 23:21:17 +02:00
Update pkg/cluster/util.go
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user