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

vault.py: flush the certificate after renaming #4913

Closed
wants to merge 2 commits into from
Closed

vault.py: flush the certificate after renaming #4913

wants to merge 2 commits into from

Conversation

fcami
Copy link
Contributor

@fcami fcami commented Jul 10, 2020

store_cert() does f.write, flush_sync, f.close, os.rename(f.name)
in that order. The directory is not flushed.

  • get rid of f.close as this is taken care of by the nested block
  • rename the file first then use flush_sync(f)

Signed-off-by: François Cami fcami@redhat.com

@fcami fcami added ipa-4-8 Mark for backport to ipa 4.8 re-run Trigger a new run of PR-CI labels Jul 10, 2020
@freeipa-pr-ci freeipa-pr-ci removed the re-run Trigger a new run of PR-CI label Jul 10, 2020
@fcami fcami added the re-run Trigger a new run of PR-CI label Jul 21, 2020
@freeipa-pr-ci freeipa-pr-ci removed the re-run Trigger a new run of PR-CI label Jul 21, 2020
@fcami fcami added the needs review Pull Request is waiting for a review label Jul 31, 2020
@abbra
Copy link
Contributor

abbra commented Aug 27, 2020

@fcami this PR seems to have stuck in PR CI. Could you please rebase and re-push?

@fcami
Copy link
Contributor Author

fcami commented Aug 31, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

store_cert() does f.write, flush_sync(f), f.close, os.rename(f.name)
in that order. The directory is not flushed.
* get rid of f.close as this is taken care of by the nested block
* rename the file first then use flush_sync(f)

Signed-off-by: François Cami <fcami@redhat.com>
@stale
Copy link

stale bot commented Nov 2, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Stale PR [Bot] label Nov 2, 2020
@stale
Copy link

stale bot commented Nov 16, 2020

This issue has been automatically closed as stale it has not had recent activity.

@stale stale bot closed this Nov 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ipa-4-8 Mark for backport to ipa 4.8 needs review Pull Request is waiting for a review stale Stale PR [Bot]
Projects
None yet
3 participants