Fix typo - 2

This commit is contained in:
Neill Cox 2023-09-26 10:07:15 +10:00
parent 067b053c5c
commit e5359326ee

View file

@ -93,9 +93,9 @@ def parse_args():
def write_user_data(data):
"""Write out a temporary user data file"""
data.boot_cmd=""
data.bootcmd=""
if data.cidr_1:
data.boot_cmd = (
data.bootcmd = (
"bootcmd:\n"
f' - "nmcli con modify \'System eth0\' ipv4.address {data.cidr_1} ipv4.method static ipv4.gateway {data.gateway} ipv4.dns {data.dns}"\n'
f' - "nmcli con modify \'Wired connection 1\' ipv4.address {data.cidr_2} ipv4.method static ipv4.gateway {data.gateway} ipv4.dns {data.dns}"\n'