Casper-API-Tools
Casper-API-Tools copied to clipboard
Traceback (most recent call last) errors
After not using this for awhile, I am seeing an issue with commands with this code. On a very basic level, getting errors when trying to do a simple device lookup:
$ casper getcomputerbyid 9325
Getting computer with JSS ID 9325...
GENERAL INFORMATION:
Computer Name: <MACHINENAME>
Asset Number: None
JSS Computer ID: 9325
Serial Number: <SERIALNUMBER>
Mac Address: <MACADDRESS>
Managed: true
Last Check-In: 2021-04-26 08:25:23
Last Inventory Update: 2021-04-26 08:28:28
USER AND LOCATION:
Username: <USERNAME>
Real Name: <REALNAME>
Email: <EMAILADDRESS>
Position: <POSITION>
Phone: <PHONE>
Department: None
Building: <BUILDING>
Room: <ROOM>
Traceback (most recent call last):
File "/Volumes/CasperAPI/CasperAPI_CLI.py", line 1615, in <module>
main()
File "/Volumes/CasperAPI/CasperAPI_CLI.py", line 1535, in main
getComputerByID(computerID, user, password)
File "/Volumes/CasperAPI/CasperAPI_CLI.py", line 426, in getComputerByID
fv2status = partition.find('filevault2_status').text
AttributeError: 'NoneType' object has no attribute 'find'
Thanks in advance for the assistance on this great utility!