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

fix download --force --run-format merging problems #4328

Merged
merged 4 commits into from
Jun 13, 2024

Conversation

DinaMeylakh
Copy link
Contributor

@DinaMeylakh DinaMeylakh commented Jun 6, 2024

Related Issues

fixes: https://jira-dc.paloaltonetworks.com/browse/CIAC-9685

Description

When running, we first call a get_dict_from_file function to do the merging with the local file. When running format after we use the get_dict_from_file function a second time. By default, it uses the cache and therefore returned the old (pre-merge) file again and ran format on it instead of the new file and saved it again. This resulted in the merger results not being saved. Passing clear_cache=True resolved this problem.

@DinaMeylakh
Copy link
Contributor Author

TDD: failing UT in commit ba210aa in this build job

Copy link

github-actions bot commented Jun 6, 2024

Changelog(s) in markdown:

  • Fixed an issue in the download command where downloading with force and run-format flags did not merge YML fields. #4328

@DinaMeylakh DinaMeylakh marked this pull request as ready for review June 6, 2024 15:26
@DinaMeylakh DinaMeylakh merged commit be55703 into master Jun 13, 2024
27 checks passed
@DinaMeylakh DinaMeylakh deleted the download_force_format_fix branch June 13, 2024 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants