-
Notifications
You must be signed in to change notification settings - Fork 16
Add flag --log-credentials-errors #57
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
Conversation
3c54bf4 to
fd1fcf9
Compare
djoreilly
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
As a user/customer, the behavior I would expect is
This patch is putting the burden of finding out which case it is on the user, and it changes the default to the second, unregistered option. Following the 'supported customers first' principle I am wondering if we can do something to make the first option also as convenient. can we keep the default of the behavior, but handle only the case of "BCI repository available and no registration code provided" silently instead? Detecting whether "BCI repository available" could be done by calling this via a new name that enables the new behavior, so existing invocations remain unaffected. |
fd1fcf9 to
2f1a83c
Compare
dirkmueller
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. thank you for addressing the previous feedback!
I'm highly suspicous that tests do not need adjustment, but lets not look there
Currently container-suseconnect will print errors to the console when it fails to obtain the SLE credentials. This is however causing UX issues in the SLE BCI containers, which work perfectly fine without a SLE subscription. Thus a new flag is introduced: `--log-credentials-errors`. When this flag is set or if the environment variable `CONTAINER_SUSECONNECT_LOG_CREDENTIALS_ERR` is set, then `container-suseconnect` will continue printing errors as it did, but the default is now that errors with obtaining the credentials will be silently swallowed so that users of SLE BCI don't get confused by this error message. This fixes SUSE#62
2f1a83c to
1173fbd
Compare
Currently container-suseconnect will print errors to the console when it fails
to obtain the SLE credentials. This is however causing UX issues in the SLE BCI
containers, which work perfectly fine without a SLE subscription.
Thus a new flag is introduced:
--log-credentials-errors. When this flag is setor if the environment variable
CONTAINER_SUSECONNECT_LOG_CREDENTIALS_ERRisset, then
container-suseconnectwill continue printing errors as it did, butthe default is now that errors with obtaining the credentials will be silently
swallowed so that users of SLE BCI don't get confused by this error message.
This fixes #62