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 the startup warning for missing custom fields #85

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

peteeckel
Copy link
Owner

@peteeckel peteeckel commented Oct 20, 2023

There are multiple problems causing this:

  • The check for the feature enable status is done against the default settings, not the current settings of NetBox DNS. In the default settings, the feature is turned off, so the check code is never executed.
  • Logging is done against the logging instance netbox.config, which is not defined by default, so the log message wouldn't have appeared anywhere by default.

The new code writes the warning message to STDOUT, so it can be seen more easily.

fixes #84

@peteeckel peteeckel merged commit 0c9b9b9 into main Oct 20, 2023
10 checks passed
@peteeckel peteeckel deleted the fix/custom-field-warning branch October 20, 2023 11:21
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.

The startup warning for missing fields is never displayed
1 participant