mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-02 04:15:46 +00:00
* src/xml.c: applied patch from Peter Vetere to pass down the
UUID from the XML description if present when creating the domain. Daniel
This commit is contained in:
parent
0798941a85
commit
16e2cc5174
@ -1,3 +1,8 @@
|
|||||||
|
Thu Jul 13 23:33:48 CEST 2006 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
|
* src/xml.c: applied patch from Peter Vetere to pass down the
|
||||||
|
UUID from the XML description if present when creating the domain.
|
||||||
|
|
||||||
Tue Jul 11 18:03:51 CEST 2006 Daniel Veillard <veillard@redhat.com>
|
Tue Jul 11 18:03:51 CEST 2006 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
* configure.in libvirt.spec.in docs/* NEWS: preparing release of
|
* configure.in libvirt.spec.in docs/* NEWS: preparing release of
|
||||||
|
@ -11,8 +11,10 @@ BuildRequires: xen python python-devel
|
|||||||
Requires: xen
|
Requires: xen
|
||||||
Requires: libxml2
|
Requires: libxml2
|
||||||
Requires: readline
|
Requires: readline
|
||||||
|
Requires: ncurses
|
||||||
BuildRequires: libxml2-devel
|
BuildRequires: libxml2-devel
|
||||||
BuildRequires: readline-devel
|
BuildRequires: readline-devel
|
||||||
|
BuildRequires: ncurses-devel
|
||||||
Obsoletes: libvir
|
Obsoletes: libvir
|
||||||
ExclusiveArch: i386 x86_64
|
ExclusiveArch: i386 x86_64
|
||||||
|
|
||||||
|
@ -1019,6 +1019,13 @@ virDomainParseXMLDesc(const char *xmldesc, char **name)
|
|||||||
}
|
}
|
||||||
xmlXPathFreeObject(obj);
|
xmlXPathFreeObject(obj);
|
||||||
|
|
||||||
|
obj = xmlXPathEval(BAD_CAST "string(/domain/uuid[1])", ctxt);
|
||||||
|
if ((obj == NULL) || (obj->type == XPATH_STRING) &&
|
||||||
|
(obj->stringval != NULL) && (obj->stringval[0] != 0)) {
|
||||||
|
virBufferVSprintf(&buf, "(uuid '%s')", obj->stringval);
|
||||||
|
}
|
||||||
|
xmlXPathFreeObject(obj);
|
||||||
|
|
||||||
obj = xmlXPathEval(BAD_CAST "string(/domain/bootloader[1])", ctxt);
|
obj = xmlXPathEval(BAD_CAST "string(/domain/bootloader[1])", ctxt);
|
||||||
if ((obj != NULL) && (obj->type == XPATH_STRING) &&
|
if ((obj != NULL) && (obj->type == XPATH_STRING) &&
|
||||||
(obj->stringval != NULL) && (obj->stringval[0] != 0)) {
|
(obj->stringval != NULL) && (obj->stringval[0] != 0)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user