Skip to content

Commit bf72312

Browse files
authored
Update applications.py
Business_unit UUID bug. The API expects a String and UUID is not serializable. Attempting to use this method to create a new application results in a runtime exception.
1 parent c6b9790 commit bf72312

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

veracode_api_py/applications.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def _create_or_update(self,method,app_name: str, business_criticality, descripti
9494
app_def.update({'teams': team_list})
9595

9696
if business_unit != None:
97-
bu = {'business_unit': {'guid': business_unit}}
97+
bu = {'business_unit': {'guid': str(business_unit)}}
9898
app_def.update(bu)
9999

100100
if (custom_fields != None):

0 commit comments

Comments
 (0)