nodedev: parse <path>

This should have been added with c4a4603de (or 0bdefd9b04).

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2017-02-15 01:04:11 +04:00 committed by Michal Privoznik
parent 0809508ed2
commit 14a3e7ab5c

View File

@ -1736,6 +1736,8 @@ virNodeDeviceDefParseXML(xmlXPathContextPtr ctxt,
goto error;
}
def->sysfs_path = virXPathString("string(./path[1])", ctxt);
/* Parse devnodes */
nodes = NULL;
if ((n = virXPathNodeSet("./devnode", ctxt, &nodes)) < 0)