Replace : with - in MAC addresses

This commit is contained in:
Khue Doan 2020-11-14 23:25:09 +07:00
parent 1011a0a45f
commit 03651dff7f

View File

@ -52,7 +52,7 @@ def generate_network_config(node):
'NAMESERVER_2': '8.8.4.4'
})
with open(f"./kickstart/config/{node['mac']}.ks", 'w') as config_file:
with open(f"./kickstart/config/{node['mac'].replace(':', '-')}.ks", 'w') as config_file:
config_file.write(config)
def poweroff(node):