On Thu, Jan 09, 2020 at 01:45:59PM +0100, Michal Privoznik wrote:
From: Julio Faracco <jcfaracco(a)gmail.com>
Since there is no guest agent in LXC world (yet), we can
implement _LEASE flag only.
Signed-off-by: Michal Privoznik <mprivozn(a)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(a)redhat.com>