Skip to content

Commit 0c7b8f8

Browse files
committed
simplifying parsing of team_name parameter
1 parent da6b5f8 commit 0c7b8f8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

veracode_api_py/identity.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,7 @@ def delete(self,user_guid: UUID):
151151
class Teams():
152152
def get_by_name(self, team_name, all_for_org=False):
153153
#Gets a list of teams matching a team_name using the Veracode Identity API
154-
request_params = {'page': 0}
155-
request_params.update({'team_name': parse.quote(team_name)})
154+
request_params = {'team_name': parse.quote(team_name), 'page': 0}
156155
if all_for_org:
157156
request_params.update({'all_for_org': True})
158157
return APIHelper()._rest_paged_request("api/authn/v2/teams","GET","teams",request_params)

0 commit comments

Comments
 (0)