Skip to content

Commit c2089f7

Browse files
authored
fix plural call (#159)
1 parent 9c00e11 commit c2089f7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

plugins/module_utils/checkpoint.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1413,11 +1413,11 @@ def call_is_plural(api_call_object, payload):
14131413
and ("nat" in api_call_object or "mobile-access" in api_call_object)
14141414
):
14151415
return False
1416-
if (
1417-
payload.get("layer") is None
1418-
and ("access" in api_call_object or "threat" in api_call_object or "https" in api_call_object)
1419-
):
1420-
return True
1416+
if ((payload.get("layer") is None and ("access" in api_call_object or "threat"
1417+
in api_call_object or "https" in api_call_object))
1418+
or
1419+
(payload.get("package") is not None and "nat" in api_call_object)):
1420+
return True
14211421
return False
14221422

14231423

0 commit comments

Comments
 (0)