From d8d332798a2498e2826e3471a417c5f318969f06 Mon Sep 17 00:00:00 2001 From: Jordi Bagot Date: Tue, 23 Dec 2025 13:40:20 +0100 Subject: [PATCH] Fix the recursivity of search_jamf_mobile function --- jamf2snipe | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jamf2snipe b/jamf2snipe index 402f8fc..a4129f6 100755 --- a/jamf2snipe +++ b/jamf2snipe @@ -228,7 +228,7 @@ def request_jamf_token(): logging.debug('Calling for a token against: {}\n The username and password can be found earlier in the script.'.format(api_url)) # No hook for this API call. data = { - 'client_id': jamf_client_id, + 'client_id': jamf_client_id, 'client_secret': jamf_client_secret, "grant_type": "client_credentials" } @@ -411,7 +411,7 @@ def search_jamf_mobile(jamf_id): logging.warning('JAMFPro Ratelimit exceeded: pausing ') time.sleep(75) logging.info("Finished waiting. Retyring lookup...") - newresponse = search_jamf_asset(jamf_id) + newresponse = search_jamf_mobile(jamf_id) return newresponse else: logging.warning('JAMFPro responded with error code:{} when we tried to look up id: {}'.format(response, jamf_id))