grahampugh / jamf-upload

Scripts for uploading packages to Jamf Cloud
Apache License 2.0
150 stars 37 forks source link

`jamf_api_tool.py` Errors #39

Open dan-snelson opened 2 years ago

dan-snelson commented 2 years ago

On a fresh install of …

… with a local clone of jamf-upload, I’m observing the following errors:

% /usr/local/autopkg/python ~/Documents/GitHub/grahampugh/jamf-upload/jamf_api_tool.py --prefs ~/Library/Preferences/com.github.autopkg.plist --computers --all --verbose

** Jamf API Tool for Jamf Pro.

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   379    0   379    0     0   2005      0 --:--:-- --:--:-- --:--:--  2005
Session token received
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   424  100   424    0     0   2409      0 --:--:-- --:--:-- --:--:--  2409
Traceback (most recent call last):
  File "/Users/ladmin/Documents/GitHub/grahampugh/jamf-upload/jamf_api_tool.py", line 1060, in <module>
    main()
  File "/Users/ladmin/Documents/GitHub/grahampugh/jamf-upload/jamf_api_tool.py", line 1026, in main
    handle_computers(jamf_url, enc_creds, args, slack_webhook, verbosity)
  File "/Users/ladmin/Documents/GitHub/grahampugh/jamf-upload/jamf_api_tool.py", line 52, in handle_computers
    for x in obj:
TypeError: 'NoneType' object is not iterable
0bl1t3r4t3 commented 2 years ago

Any updates on this?