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

Fix issue with updating traps #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TheFlyingCorpse
Copy link

@TheFlyingCorpse TheFlyingCorpse commented Mar 20, 2021

Fix an "array to string" conversion problem for traps that are already present in the database. Usually seen as "Error in update : Array to string conversion", with an aborted import / update of mibs as a result.

The issue I've come across that this fixes is that instead of passing an entire array to the ":id", it now passes just the ID's to make the query work instead of aborting the process.

On the next run regardless of this fix, the code thinks the trap is already imported if it has already been attempted to be imported before and skips it. This ticket does not fix that issue.

Fix an "array to string" conversion problem for traps that are already present in the database.
The issue I've come across that this fixes is that instead of passing an entire array, it now passes just the ID's to make the query work instead of aborting the process.
On the next run without this fix, it thinks the trap is already imported and skips it.
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.

None yet

1 participant