Skip to content

Commit

Permalink
fix plural call (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
chkp-edenbr authored Nov 17, 2024
1 parent 9c00e11 commit c2089f7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/module_utils/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -1413,11 +1413,11 @@ def call_is_plural(api_call_object, payload):
and ("nat" in api_call_object or "mobile-access" in api_call_object)
):
return False
if (
payload.get("layer") is None
and ("access" in api_call_object or "threat" in api_call_object or "https" in api_call_object)
):
return True
if ((payload.get("layer") is None and ("access" in api_call_object or "threat"
in api_call_object or "https" in api_call_object))
or
(payload.get("package") is not None and "nat" in api_call_object)):
return True
return False


Expand Down

0 comments on commit c2089f7

Please sign in to comment.