files in subfolder

This commit is contained in:
Charlie Jacomme 2018-08-07 14:49:13 +02:00
parent 962332a6ff
commit 2e7cac5001

View file

@ -34,7 +34,7 @@ def regen_dhcp(api_client):
ipv4=ipv4 ipv4=ipv4
) for hostname, mac_address, ipv4 in hmi_list) ) for hostname, mac_address, ipv4 in hmi_list)
filename = 'dhcp{extension}.list'.format(extension=extension) filename = 'generated/dhcp{extension}.list'.format(extension=extension)
with open(filename, 'w+') as f: with open(filename, 'w+') as f:
f.write(dhcp_leases_content) f.write(dhcp_leases_content)