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

Enable --offline to affect checking version online #4283

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

cavcrosby
Copy link
Contributor

Fixes #4269.

@cavcrosby cavcrosby marked this pull request as ready for review August 3, 2024 19:36
@cavcrosby cavcrosby requested a review from a team as a code owner August 3, 2024 19:36
@cavcrosby cavcrosby requested review from audgirka and alisonlhart and removed request for a team August 3, 2024 19:36
@cavcrosby cavcrosby force-pushed the enable-offline-version-online branch from 9be13f8 to 20898a9 Compare August 13, 2024 02:01
Copy link
Contributor

@alisonlhart alisonlhart left a comment

Choose a reason for hiding this comment

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

Looks good! Will need an update to PYTEST_REQPASS before merging.

A conditional has been added to see if data is empty to prevent KeyError
exceptions from happening because a cache file may not exist when using
the --offline flag. This prevents data from ever being populated.
Copy link

@audgirka audgirka merged commit bd568b7 into ansible:main Aug 27, 2024
25 of 26 checks passed
@cavcrosby cavcrosby deleted the enable-offline-version-online branch August 27, 2024 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

--version ignores --offline flag
3 participants