Skip to content

Commit 453045b

Browse files
committed
unit test
1 parent d733494 commit 453045b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nightfall/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,12 @@ def _file_scan_scan(self, session_id: str, detection_rules: Optional[List[Detect
231231
data = {"policyUUID": policy_uuid}
232232
else:
233233
data = {"policy": {}}
234+
if webhook_url:
235+
data["policy"]["webhookURL"] = webhook_url
234236
if detection_rule_uuids:
235237
data["policy"]["detectionRuleUUIDs"] = detection_rule_uuids
236238
if detection_rules:
237239
data["policy"]["detectionRules"] = [d.as_dict() for d in detection_rules]
238-
if webhook_url:
239-
data["policy"]["webhookURL"] = webhook_url
240240
if alert_config:
241241
data["policy"]["alertConfig"] = alert_config.as_dict()
242242

0 commit comments

Comments
 (0)