From c2089f75451e9dd69dc8f577709e16fa5abd4778 Mon Sep 17 00:00:00 2001 From: chkp-edenbr <94056191+chkp-edenbr@users.noreply.github.com> Date: Sun, 17 Nov 2024 08:29:03 +0200 Subject: [PATCH] fix plural call (#159) --- plugins/module_utils/checkpoint.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/module_utils/checkpoint.py b/plugins/module_utils/checkpoint.py index defe103..b8b15a5 100644 --- a/plugins/module_utils/checkpoint.py +++ b/plugins/module_utils/checkpoint.py @@ -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