Skip to content

Commit d8700de

Browse files
authored
Change: URI result field defaults now to an empty string instead of None (#637)
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.
1 parent bbbb200 commit d8700de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notus/scanner/messages/result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def __init__(
2828
oid: str,
2929
value: str,
3030
port: str = "package",
31-
uri: str = None,
31+
uri: str = "",
3232
result_type: ResultType = ResultType.ALARM,
3333
message_id: Optional[UUID] = None,
3434
group_id: Optional[UUID] = None,

0 commit comments

Comments
 (0)