]> git.ipfire.org Git - thirdparty/libvirt.git/commit
networkGetDHCPLeases: Remove unnecessary error reporting
authorNehal J Wani <nehaljw.kkd1@gmail.com>
Mon, 5 Jan 2015 17:49:24 +0000 (23:19 +0530)
committerEric Blake <eblake@redhat.com>
Mon, 5 Jan 2015 23:58:18 +0000 (16:58 -0700)
commit18ec863d19bdaf517e26642f794b7ee4d1d2c53f
treef807c2afc3d1eeb175552c87a1329ab4e175d784
parent39449f70b9333fb623bed90c2d624792ab38daa7
networkGetDHCPLeases: Remove unnecessary error reporting

Lack of a lease (whether mac is given or not) is a normal expected
scenario, since we are already filling in rv with nleases (which is
okay as 0 if there is no lease).  There is no need to raise an error.

This fixes:

> virsh # net-dhcp-leases --mac 00:50:56:c0:00:01  default
> error: Failed to get leases info for default
> error: internal error: no lease with matching MAC address: 00:50:56:c0:00:01

Signed-off-by: Nehal J Wani <nehaljw.kkd1@gmail.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
src/network/bridge_driver.c