Skip to content

fix(import): [develop] log each template error correctly - #856

Merged
TheWitness merged 1 commit into
developfrom
fix/develop-template-import-error-logging
Oct 13, 2026
Merged

TheWitness merged 1 commit into
developfrom
fix/develop-template-import-error-logging

Conversation

@somethingwithproof

Copy link
Copy Markdown
Member

The template import error loop logs the previous success message instead of its current error, and an errors-only import can reference an unset variable. Log $error for each entry.

Fixes #757. This plugin fix targets develop and remains compatible with its supported Cacti 1.2.x and develop installations.

Validation: the regression executes the production error loop through the existing logging recorder; it fails before and passes after the fix. Related threshold/environment tests and the manifest check pass. The complete native suite has an existing macOS failure because its successful-command fixture expects /bin/true, which is absent here; this is not a full-suite green claim. No database, mail server or device was contacted.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
@TheWitness
TheWitness merged commit 2de8e1c into develop Oct 13, 2026
3 checks passed
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.

Bug: template import error logging uses wrong variable in error loop

2 participants