-
Notifications
You must be signed in to change notification settings - Fork 80
Add in logic to detect the 401 #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Upgrade Pipfile python version to 3.7
Added a if/else statement to determine if self.response gets set with a 401. This doesn't happen when GET follows the redirects.
sumologic/sumologic.py
Outdated
endpoint = self.response.url.replace('/collectors', '') # dirty hack to sanitise URI and retain domain | ||
else: | ||
endpoint = self.response.url.replace('/collectors', '') # dirty hack to sanitise URI and retain domain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's unnecessary code duplicaiton.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching it. Updated code to remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, reviewing the recent commit logs. This can be closed.
Per a code review, it was noted two lines were noted as being duplicate.
Fixes Issue #51