Update pkg/cluster/util.go
This commit is contained in:
		
							parent
							
								
									22b3e9a2e2
								
							
						
					
					
						commit
						b5b6f41692
					
				|  | @ -275,7 +275,7 @@ func (c *Cluster) getTeamMembers(teamID string) ([]string, error) { | ||||||
| 	teamInfo, statusCode, err := c.teamsAPIClient.TeamInfo(teamID, token) | 	teamInfo, statusCode, err := c.teamsAPIClient.TeamInfo(teamID, token) | ||||||
| 
 | 
 | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		if statusCode == 404 { | 		if statusCode == http.StatusNotFound { | ||||||
| 			c.logger.Warningf("could not get team info for team %q: %v", teamID, err) | 			c.logger.Warningf("could not get team info for team %q: %v", teamID, err) | ||||||
| 		} else { | 		} else { | ||||||
| 			return nil, fmt.Errorf("could not get team info for team %q: %v", teamID, err) | 			return nil, fmt.Errorf("could not get team info for team %q: %v", teamID, err) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue