virsh: return correct value from cmdDomIfGetLink
Reported by Alex Jia <ajia@redhat.com>. Function cmdDomIfGetLink did not set a success return value on success path. Signed-off-by: Alex Jia<ajia@redhat.com>
This commit is contained in:
parent
33eb3567dd
commit
6235629648
@ -1568,6 +1568,7 @@ hit:
|
|||||||
/* attribute not found */
|
/* attribute not found */
|
||||||
vshPrint(ctl, "%s default", iface);
|
vshPrint(ctl, "%s default", iface);
|
||||||
|
|
||||||
|
ret = true;
|
||||||
cleanup:
|
cleanup:
|
||||||
xmlXPathFreeObject(obj);
|
xmlXPathFreeObject(obj);
|
||||||
xmlXPathFreeContext(ctxt);
|
xmlXPathFreeContext(ctxt);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user