Displaying 1 result from an estimated 1 matches for "ee956b".
Did you mean:
ee956be
2015 Oct 08
0
[PATCH] v2v: Add xpath_int64 functions, and use them to read memory values.
...memory = memory *^ 1024L *^ 1024L in
(* Search for number of vCPUs. *)
let vcpu = xpath_int_default "/ovf:Envelope/ovf:VirtualSystem/ovf:VirtualHardwareSection/ovf:Item[rasd:ResourceType/text()=3]/rasd:VirtualQuantity/text()" 1 in
diff --git a/v2v/utils.ml b/v2v/utils.ml
index ee956be..2998d90 100644
--- a/v2v/utils.ml
+++ b/v2v/utils.ml
@@ -79,6 +79,17 @@ let xpath_int xpathctx expr =
error (f_"expecting XML expression to return an integer (expression: %s, matching string: %s)")
expr str
)
+let xpath_int64 xpathctx expr =
+ let obj = Xml.xpath...