Skip to content

Commit e9daba1

Browse files
author
Dan Hertz
committed
Fix defaults
1 parent 860cecd commit e9daba1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nightfall/api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def _scan_text_v3(self, data: dict):
111111

112112
# File Scan
113113

114-
def scan_file(self, location: str, webhook_url: str, policy_uuid: str = None,
114+
def scan_file(self, location: str, webhook_url: str = None, policy_uuid: str = None,
115115
detection_rules: List[DetectionRule] = None, detection_rule_uuids: List[str] = None,
116116
) -> Tuple[str, str]:
117117
"""Scan file with Nightfall.
@@ -200,8 +200,8 @@ def _file_scan_finalize(self, session_id: str):
200200
)
201201
return response
202202

203-
def _file_scan_scan(self, session_id: str, detection_rules: List[DetectionRule] = [],
204-
detection_rule_uuids: List[str] = [], webhook_url: str = "", policy_uuid: str = ""):
203+
def _file_scan_scan(self, session_id: str, detection_rules: List[DetectionRule] = None,
204+
detection_rule_uuids: List[str] = None, webhook_url: str = None, policy_uuid: str = None):
205205
if policy_uuid:
206206
data = {"policyUUID": policy_uuid}
207207
else:

0 commit comments

Comments
 (0)