Fix typo - 2
This commit is contained in:
parent
067b053c5c
commit
e5359326ee
1 changed files with 2 additions and 2 deletions
|
|
@ -93,9 +93,9 @@ def parse_args():
|
||||||
def write_user_data(data):
|
def write_user_data(data):
|
||||||
"""Write out a temporary user data file"""
|
"""Write out a temporary user data file"""
|
||||||
|
|
||||||
data.boot_cmd=""
|
data.bootcmd=""
|
||||||
if data.cidr_1:
|
if data.cidr_1:
|
||||||
data.boot_cmd = (
|
data.bootcmd = (
|
||||||
"bootcmd:\n"
|
"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 \'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'
|
f' - "nmcli con modify \'Wired connection 1\' ipv4.address {data.cidr_2} ipv4.method static ipv4.gateway {data.gateway} ipv4.dns {data.dns}"\n'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue