Skip to content

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.

1 participant