Hi all. Here's a pretty straightforward patch that fixes a bug I found
where, if <uuid>...</uuid> is specified in the XML on the call
createLinux, it is not propagated down to Xend. The result is an
instance with a different UUID than the one requested.
Pete
--- src/xml.c 10 Jul 2006 11:21:24 -0000 1.26
+++ src/xml.c 13 Jul 2006 20:52:48 -0000
@@ -1019,6 +1019,13 @@
}
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);
if ((obj != NULL) && (obj->type == XPATH_STRING) &&
(obj->stringval != NULL) && (obj->stringval[0] != 0)) {