python-htb icon indicating copy to clipboard operation
python-htb copied to clipboard

Fix OpenVPN import issue

Open Daviey opened this issue 5 years ago • 0 comments

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/python-htb#6 Signed-off-by: Dave Walker (Daviey) [email protected]

Daviey avatar Nov 27 '20 13:11 Daviey