-
Notifications
You must be signed in to change notification settings - Fork 180
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
Fix AttributeError: ENABLE_NVREA
for reposync
#8916
base: master
Are you sure you want to change the base?
Conversation
942eeba
to
a801fc3
Compare
Do we need/want a backport for this? |
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.
1 suggestion in line, but other than that looks good to me 👍
473f7d0
to
8a62a3f
Compare
Co-authored-by: Dominik Gedon <[email protected]>
9ed4d1f
to
edf402b
Compare
if "checksum_id" in tbs.pk: | ||
tbs.pk.remove("checksum_id") | ||
with cfg_component("server") as cfg: | ||
if not cfg.ENABLE_NVREA: |
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.
For me looks like AttributeError: ENABLE_NVREA
is still possible here if it's missing in rhn.conf or default configs for some reason.
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.
We have it in our default rhn_server.conf
, if there is an AttributeError
there is a bigger problem (default configs missing or modified), IMO it's okay to show a backtrace in that situation.
@m-czernek I think it's just a PR review now. It would be good if someone double checked the |
@agraul IIUC when
But I'm not sure if that's what you'd like to double check. |
@ycedres it would be good if you could double check that |
What does this PR change?
Fixes https://bugzilla.suse.com/show_bug.cgi?id=1226273.
GUI diff
No difference.
Documentation
Test coverage
Links
Issue(s): https://github.com/SUSE/spacewalk/issues/24551
Port(s): # Manager 4.3:
Changelogs
Make sure the changelogs entries you are adding are compliant with https://github.com/uyuni-project/uyuni/wiki/Contributing#changelogs and https://github.com/uyuni-project/uyuni/wiki/Contributing#uyuni-projectuyuni-repository
If you don't need a changelog check, please mark this checkbox:
If you uncheck the checkbox after the PR is created, you will need to re-run
changelog_test
(see below)Re-run a test
If you need to re-run a test, please mark the related checkbox, it will be unchecked automatically once it has re-run:
Before you merge
Check How to branch and merge properly!