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

Fixes #36684 - allow single_content_view in ContentFacet::Jail #10699

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Aug 16, 2023

What are the changes introduced in this pull request?

Allow single_content_view in ContentFacet::Jail

Otherwise the Ansible Inventory report template doesn't render properly when Safe Mode is on.

Same for single_lifecycle_environment and KTEnvironment#id.

Considerations taken when implementing this change?

none

What are the testing steps for this pull request?

  1. have a Katello with at least one system that has a content facet and safe mode on
  2. render the "Ansible Inventory" report and it should not fail anymore

@theforeman-bot
Copy link

Issues: #36684

@evgeni
Copy link
Member Author

evgeni commented Aug 16, 2023

👀 @ianballou @jeremylenz in theforeman/foreman#9478 you tested this -- was this with Safe Mode off?

Otherwise the Ansible Inventory report template doesn't render properly
when Safe Mode is on.

Same for single_lifecycle_environment and KTEnvironment#id.

Fixes: c33da7a
@jeremylenz
Copy link
Member

Looks like :single_content_view and :single_lifecycle_environment were added to the jail for Host::Managed in that PR, but not to ContentFacet. I guess the reports we tested with didn't try that on content facet directly..

@jeremylenz jeremylenz merged commit 0569063 into Katello:master Aug 16, 2023
4 of 5 checks passed
@evgeni evgeni deleted the i36684 branch August 16, 2023 13:23
@evgeni
Copy link
Member Author

evgeni commented Aug 16, 2023

Can we get this picked to 4.8 and 4.9? 😻

wbclark pushed a commit to wbclark/katello that referenced this pull request Sep 7, 2023
…lo#10699)

Otherwise the Ansible Inventory report template doesn't render properly
when Safe Mode is on.

Same for single_lifecycle_environment and KTEnvironment#id.

Fixes: c33da7a
(cherry picked from commit 0569063)
wbclark pushed a commit that referenced this pull request Sep 27, 2023
Otherwise the Ansible Inventory report template doesn't render properly
when Safe Mode is on.

Same for single_lifecycle_environment and KTEnvironment#id.

Fixes: c33da7a
(cherry picked from commit 0569063)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants