Skip to content

Commit ddafd48

Browse files
committed
make sure that when serializing if rba was None, it
is actually now {}
1 parent 79fbb2b commit ddafd48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contentctl/objects/abstract_security_content_objects/detection_abstract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ def serialize_model(self):
484484
"datamodel": self.datamodel,
485485
"source": self.source,
486486
"nes_fields": self.nes_fields,
487-
"rba": self.rba,
487+
"rba": self.rba or {},
488488
}
489489
if self.deployment.alert_action.notable:
490490
model["risk_severity"] = self.severity

0 commit comments

Comments
 (0)