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

rename JOBRESULT_RETENTION to JOB_RETENTION #1009

Merged
merged 2 commits into from May 8, 2023
Merged

rename JOBRESULT_RETENTION to JOB_RETENTION #1009

merged 2 commits into from May 8, 2023

Conversation

marcquark
Copy link
Contributor

Related Issue: none

New Behavior

When adding JOB_RETENTION as an environment variable to the netbox container, the value is now correctly passed on to the application. Furthermore, in order to not break existing setups that are upgraded without due care, if JOBRESULT_RETENTION is present it is passed on to the application as JOB_RETENTION.

Contrast to Current Behavior

The current behaviour breaks after upgrading to v3.5.0 or later since the release changed the variable's name from JOBRESULT_RETENTION to JOB_RETENTION.

Discussion: Benefits and Drawbacks

Should i also add a check and warning to docker-entrypoint.sh? On the one hand it would be convenient, on the other hand, doing so for every minor change like this may get out of hand.

Changes to the Wiki

not required

Proposed Release Note Entry

The JOBRESULT_RETENTION configuration parameter has been renamed to JOB_RETENTION to stay in line with NetBox.

Double Check

  • I have read the comments and followed the PR template.
  • I have explained my PR according to the information in the comments.
  • My PR targets the develop branch.

@tobiasge tobiasge merged commit 2037e42 into netbox-community:develop May 8, 2023
8 of 9 checks passed
@tobiasge tobiasge mentioned this pull request Aug 30, 2023
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

2 participants