Deprecate content_view and lifecycle_environment parameters#1977
Open
jeremylenz wants to merge 3 commits into
Open
Deprecate content_view and lifecycle_environment parameters#1977jeremylenz wants to merge 3 commits into
jeremylenz wants to merge 3 commits into
Conversation
Deprecate content_view and lifecycle_environment parameters in activation_key, host, and hostgroup modules. On newer Katello versions, modules convert these deprecated params to content_view_environment_id(s). Multi-CV entities are protected from accidental overwrite. Old Katello versions continue to work unchanged.
Merged
7 tasks
Contributor
Author
Manual test resultsAll 7 tests pass against both:
Test vars (
|
Rename `_` to `_filtered` in validate_payload tuple unpacking to satisfy pylint's disallowed-name check. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Check whether the old content_view_id param is absent (removed) rather than whether content_view_environment_id is present, since older Katello versions have both params simultaneously. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Fixed an issue with the test playbook; it should now run on both Katello master and PR branch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Deprecates the
content_viewandlifecycle_environmentparameters in theactivation_key,host, andhostgroupmodules.On newer Katello versions (where the old API parameters are removed), the modules internally convert these deprecated parameters to the new
content_view_environment_id(s)API parameters. Multi-CV entities are protected from accidental overwrite. Old Katello versions continue to work unchanged.Files changed:
plugins/module_utils/foreman_helper.py— helper method, HostMixin conversion logic, workaround safety fixplugins/modules/activation_key.py— AK-specific conversion logic + deprecation docsplugins/doc_fragments/foreman.py— deprecation notices in HOST_OPTIONSchangelogs/fragments/deprecate-cv-lce-params.yml— changelog entryRelated Katello PR: Katello/katello#11753