Skip to content

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