mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-05 13:08:52 +07:00
Replace : with - in MAC addresses
This commit is contained in:
parent
1011a0a45f
commit
03651dff7f
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user