python-egnyte
python-egnyte copied to clipboard
Audit Report Bug Fixes
Could not delete audit reports via the python SDK for two reasons:
- AuditReport class used the default Resource delete function. In the AuditReport class, this causes the 'job' endpoint to be used rather than the 'login'/'file'/etc endpoint with the complete url.
- When an audit report is deleted it returns a 204 HTTP status. Currently the check_response function only accepts a 200 code and hence was throwing an exception.
I have implemented fixes to both functions. Would advise a wider catch on HTTP status codes to include all 2XX codes.
Why was this never merged?
No idea unfortunately, never got a response after putting up the pull request. Not looked at the API recently so don’t know if it’s changed, but feel free to use the changes.
Did you ever end up integrating with Egnyte? What was your experience? If you wouldn't mind shooting me an email to my thowaway account [email protected] I'd appreciate it :)