[libvirt] [PATCH v4 4/5] lxc: Implement virDomainGetHostnameFlags
Erik Skultety
eskultet at redhat.com
Fri Jan 10 13:15:00 UTC 2020
On Thu, Jan 09, 2020 at 01:45:59PM +0100, Michal Privoznik wrote:
> From: Julio Faracco <jcfaracco at gmail.com>
>
> Since there is no guest agent in LXC world (yet), we can
> implement _LEASE flag only.
>
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> +
> + for (j = 0; j < n_leases; j++) {
> + virNetworkDHCPLeasePtr lease = leases[j];
> +
> + if (lease->hostname && !hostname)
> + hostname = g_strdup(lease->hostname);
Same comment with using a break.
Reviewed-by: Erik Skultety <eskultet at redhat.com>
More information about the libvir-list
mailing list