mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
network: fix indentation in networkBuildDnsmasqArgv
This block was inadvertently added with the wrong indentation.
This commit is contained in:
parent
ca43756800
commit
8e49ade18a
@ -614,14 +614,13 @@ networkBuildDnsmasqArgv(virNetworkObjPtr network,
|
||||
if (ipdef->nranges || ipdef->nhosts)
|
||||
virCommandAddArg(cmd, "--dhcp-no-override");
|
||||
|
||||
if ((dctx = networkSaveDnsmasqHostsfile(ipdef, network->def->dns, network->def->name, false))) {
|
||||
if (dctx->hostsfile->nhosts)
|
||||
virCommandAddArgPair(cmd, "--dhcp-hostsfile",
|
||||
dctx->hostsfile->path);
|
||||
if (dctx->addnhostsfile->nhosts)
|
||||
virCommandAddArgPair(cmd, "--addn-hosts",
|
||||
dctx->addnhostsfile->path);
|
||||
|
||||
if ((dctx = networkSaveDnsmasqHostsfile(ipdef, network->def->dns, network->def->name, false))) {
|
||||
if (dctx->hostsfile->nhosts)
|
||||
virCommandAddArgPair(cmd, "--dhcp-hostsfile",
|
||||
dctx->hostsfile->path);
|
||||
if (dctx->addnhostsfile->nhosts)
|
||||
virCommandAddArgPair(cmd, "--addn-hosts",
|
||||
dctx->addnhostsfile->path);
|
||||
dnsmasqContextFree(dctx);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user