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

new file handle should close after create (#628, @dragonflylee) #628

Merged
merged 1 commit into from Jun 11, 2021
Merged

new file handle should close after create (#628, @dragonflylee) #628

merged 1 commit into from Jun 11, 2021

Conversation

dragonflylee
Copy link
Contributor

when first create kubeconfig file on windows, if the handle of empty file not close, will cause Access Deined on the follow step os.Rename

@iwilltry42
Copy link
Member

Thank you! (I fear there may be way more things to improve here as well.. this loop to create things is odd)

@iwilltry42 iwilltry42 changed the title new file handle should close after create new file handle should close after create (#628, @dragonflylee) Jun 11, 2021
@iwilltry42 iwilltry42 merged commit 511c6c3 into k3d-io:main Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants