Noms de fichier en minuscule et sans espace
This commit is contained in:
parent
1c8e1e68f8
commit
dd5d3b7301
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -56,7 +56,7 @@ def generate_file(template, host_mac_ip, file_prefix):
|
||||||
|
|
||||||
filename = path+'/generated/{file_prefix}{key}.list'.format(
|
filename = path+'/generated/{file_prefix}{key}.list'.format(
|
||||||
key=key,
|
key=key,
|
||||||
file_prefix=file_prefix)
|
file_prefix=file_prefix).lower().replace(" ", "_")
|
||||||
with open(filename, 'w+') as f:
|
with open(filename, 'w+') as f:
|
||||||
f.write(dhcp_leases_content)
|
f.write(dhcp_leases_content)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue