Repository navigation
Conversation
s-hertel
commented
Sep 21, 2023
s-hertel
commented
Sep 21, 2023
s-hertel
commented
Sep 22, 2023
Comment on lines
+1543
to
+1561
| except SystemError as e: | ||
| module.fail_json(msg=to_native(e)) |
Contributor
Author
There was a problem hiding this comment.
If we don't want to add the complexity, this could be simplified by removing the rest of the patch and adding a note to the documentation that the default_release is configured before updating the cache.
If someone's hitting this, they're either adding a repository without apt_repository and not updating the cache, or going out of their way to disable update_cache with apt_repository.
… default_release configured
s-hertel
force-pushed
the
retry-and-handle-apt-cache-config-error
branch
from
April 24, 2024 17:06
2c78e90 to
c7b3965
Compare
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
SUMMARY
Fixes #28991
Not sure how to test for this easily. At minimum we should handle the SystemError and indicate the user needs to update the cache from a previous operation.
here's a reproducer
without the patch, results in
ISSUE TYPE