Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pytm/pytm.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,7 @@ class Finding:
""",
)
cvss = varString("", required=False, doc="The CVSS score and/or vector")
likelihood = varString("", required=False, doc="Likelihood of the threat")

def __init__(
self,
Expand All @@ -721,6 +722,7 @@ def __init__(
"example",
"references",
"condition",
"likelihood",
]
threat = kwargs.pop("threat", None)
if threat:
Expand Down Expand Up @@ -2141,6 +2143,7 @@ def encode_threat_data(obj):
"condition",
"cvss",
"response",
"likelihood",
]

if type(obj) is Finding or (len(obj) != 0 and type(obj[0]) is Finding):
Expand Down
Loading