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

checker:event_handler fails on a "remove" event #46

Closed
timmysilv opened this issue Jul 22, 2020 · 0 comments · Fixed by #48
Closed

checker:event_handler fails on a "remove" event #46

timmysilv opened this issue Jul 22, 2020 · 0 comments · Fixed by #48

Comments

@timmysilv
Copy link
Contributor

When the self.targets table is populated, the code uses hostname or ip in case the user did not provide a hostname. However, when the same table is accessed for a "remove" event, the code simply refers to target_found.hostname, which results in an attempt to access a nil key.

Adding: or target_found.ip to that key should suffice.

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 a pull request may close this issue.

1 participant