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 OpenVPN import issue #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Daviey
Copy link

@Daviey Daviey commented Nov 27, 2020

Previously, the command htb lab import would fail. This is because it
was writing an empty file, as the write() would be buffered and not
flush to file before the nmcli import was called.

This change explicitly calls flush() to commit the changes to the file,
meaning the contents is written to the file.

Fixes: #6
Signed-off-by: Dave Walker (Daviey) [email protected]

Previously, the command `htb lab import` would fail.  This is because it
was writing an empty file, as the write() would be buffered and not
flush to file before the `nmcli` import was called.

This change explicitly calls flush() to commit the changes to the file,
meaning the contents is written to the file.

Fixes: calebstewart#6
Signed-off-by: Dave Walker (Daviey) <[email protected]>
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.

Importing VPN fails
1 participant