Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions jamf2snipe
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down Expand Up @@ -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))
Expand Down