interface: automatic dhcp-hostname determination: use dhcp-hostname instead of legacy hostname property
This commit is contained in:
parent
02bc14da19
commit
58b1cf1021
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ lif_interface_use_executor(struct lif_interface *interface, const char *executor
|
||||||
if (uname(&un) < 0)
|
if (uname(&un) < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
lif_dict_add(&interface->vars, "hostname", strdup(un.nodename));
|
lif_dict_add(&interface->vars, "dhcp-hostname", strdup(un.nodename));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue