Casper-API-Tools icon indicating copy to clipboard operation
Casper-API-Tools copied to clipboard

"TypeError: cannot concatenate 'str' and 'NoneType' objects"

Open br3ck opened this issue 7 years ago • 0 comments

I am trying to use deletecomputeridsfromcsv as theres a bug in JAMF 10 that doesnt allow for mass deletions of objects. I am getting the following error when doing so:

Test Run: Delete computer ID 2591 Getting computer with JSS ID 2591...

GENERAL INFORMATION: Computer Name: ***** Asset Number: None JSS Computer ID: 2591 Serial Number: C02***** Mac Address: ******* Managed: true Traceback (most recent call last): File "/Volumes/CasperAPI/CasperAPI_CLI.py", line 1523, in main() File "/Volumes/CasperAPI/CasperAPI_CLI.py", line 1439, in main deleteComputerIDsFromCSV(computersCSV, user, password) File "/Volumes/CasperAPI/CasperAPI_CLI.py", line 1206, in deleteComputerIDsFromCSV deleteComputerByID(compID, username, password) File "/Volumes/CasperAPI/CasperAPI_CLI.py", line 1166, in deleteComputerByID getComputerByID(comp_id, username, password) File "/Volumes/CasperAPI/CasperAPI_CLI.py", line 377, in getComputerByID print 'Last Check-In: ' + last_contact_time TypeError: cannot concatenate 'str' and 'NoneType' objects

br3ck avatar Apr 11 '18 20:04 br3ck