diff options
author | John Estabrook <jestabro@vyos.io> | 2023-08-15 21:40:56 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2023-08-15 21:40:56 -0500 |
commit | 4ea96d2485971dbdafe921ca65967f8385450f11 (patch) | |
tree | 5e3a0c0b544d42ec77cc2c081486f95945577f3b /src | |
parent | f67614c66d6570c06be199ffffe439a589a06d4b (diff) | |
download | vyos-1x-4ea96d2485971dbdafe921ca65967f8385450f11.tar.gz vyos-1x-4ea96d2485971dbdafe921ca65967f8385450f11.zip |
T5483: clean up tmp config file
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/dhcp_server.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf_mode/dhcp_server.py b/src/conf_mode/dhcp_server.py index 280057f04..c4c72aae9 100755 --- a/src/conf_mode/dhcp_server.py +++ b/src/conf_mode/dhcp_server.py @@ -296,6 +296,10 @@ def generate(dhcp): render(config_file, 'dhcp-server/dhcpd.conf.j2', dhcp, formater=lambda _: _.replace(""", '"')) + # Clean up configuration test file + if os.path.exists(tmp_file): + os.unlink(tmp_file) + return None def apply(dhcp): |