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

[1.29] fix: Hide subscription management "errors" in container mode #3407

Merged

Conversation

m-horky
Copy link
Contributor

@m-horky m-horky commented May 31, 2024

  • Card ID: CCT-322
  • Card ID: RHEL-7199

When dnf is run in a container that gets its content from a host, extra messages were displayed:

- Updating Subscription Management repositories.
> Unable to read consumer identity
- subscription-manager is operating in container mode.
> This system is not registered with an entitlement server. You can use
  subscription-manager to register.

Only the first line and third should be displayed; the second and fourth are not relevant in container mode.

(Cherry-picked from a3265e4)

* Card ID: CCT-322
* Card ID: RHEL-7199

When `dnf` is run in a container that gets its content from a host,
extra messages were displayed:

- Updating Subscription Management repositories.
> Unable to read consumer identity
- subscription-manager is operating in container mode.
> This system is not registered with an entitlement server. You can use
  subscription-manager to register.

Only the first line and third should be displayed; the second and fourth
are not relevant in container mode.

(Cherry-picked from a3265e4)
@cnsnyder cnsnyder requested review from a team and wottop and removed request for a team May 31, 2024 07:44
Copy link
Contributor

@jirihnidek jirihnidek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jirihnidek jirihnidek merged commit ccf0207 into subscription-manager-1.29 May 31, 2024
5 checks passed
@jirihnidek jirihnidek deleted the mhorky/cct-322-dnf-in-container-1.29 branch May 31, 2024 12:49
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.

2 participants