Skip to content

Commit

Permalink
Change: URI result field defaults now to an empty string instead of None
Browse files Browse the repository at this point in the history
None was later serialized and sent as None string in the URI result field.
gvmd will ignore/hide the URI field if it is an empty string.
  • Loading branch information
jjnicola committed Nov 26, 2024
1 parent 1bff5da commit c03ca4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notus/scanner/messages/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(
oid: str,
value: str,
port: str = "package",
uri: str = None,
uri: str = "",
result_type: ResultType = ResultType.ALARM,
message_id: Optional[UUID] = None,
group_id: Optional[UUID] = None,
Expand Down

0 comments on commit c03ca4d

Please sign in to comment.