Skip to content
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

Re-login on expired session #89

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

pederhan
Copy link
Member

@pederhan pederhan commented Oct 17, 2024

This PR adds handling for expired API user sessions by adding automatic attempts to re-login to the API.

The implementation isn't super clean; isinstance(self, ZabbixUpdater) is not great, but the alternatives are all more time-consuming and error prone. This works fine.

Also adds/removes some miscellaneous comments.

Closes #88

@pederhan pederhan merged commit a42e0d1 into unioslo:master Oct 17, 2024
5 checks passed
@pederhan pederhan deleted the re-login-on-expired-session branch October 17, 2024 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Re-login if Zabbix API session expires
1 participant