mirror of
https://github.com/mandiant/capa.git
synced 2026-02-04 19:12:01 -08:00
result_document.py: use the scopes attribute instead of meta["scope"]
This commit is contained in:
@@ -169,7 +169,7 @@ class RangeStatement(StatementModel):
|
||||
class SubscopeStatement(StatementModel):
|
||||
type: Literal["subscope"] = "subscope"
|
||||
description: Optional[str] = None
|
||||
scope: capa.rules.Scope
|
||||
scopes: capa.rules.Scopes
|
||||
|
||||
|
||||
Statement = Union[
|
||||
@@ -360,7 +360,7 @@ class Match(FrozenModel):
|
||||
# note! replace `node`
|
||||
node = StatementNode(
|
||||
statement=SubscopeStatement(
|
||||
scope=rule.meta["scope"],
|
||||
scopes=rule.meta["scopes"],
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user