Skip to content

Commit

Permalink
Add all default for groups parameter in createMLExclusionsV1 operation.
Browse files Browse the repository at this point in the history
Closes #1233.
  • Loading branch information
jshcodes committed Oct 25, 2024
1 parent a4faf69 commit c780ab2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/falconpy/ml_exclusions.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ def create_exclusions(self: object, body: dict = None, **kwargs) -> Dict[str, Un
body = exclusion_payload(passed_keywords=kwargs)
if kwargs.get("excluded_from", None):
body["excluded_from"] = kwargs.get("excluded_from", None)
# Issue 1233
if not body.get("groups"):
body["groups"] = ["all"]

return process_service_request(
calling_object=self,
Expand Down

0 comments on commit c780ab2

Please sign in to comment.