]> xenbits.xensource.com Git - xcp/xen-api.git/commitdiff
CA-32077: the minimal inventory needs a BUILD_NUMBER otherwise xapi will fail to...
authorDavid Scott <dave.scott@eu.citrix.com>
Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)
committerDavid Scott <dave.scott@eu.citrix.com>
Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)
Signed-off-by: David Scott <dave.scott@eu.citrix.com>
ocaml/util/util_inventory.ml

index 6b120b047bce09c734aefcbb3e75847b65ee6f93..103e15f51dfb1622b2af09f7cbc21a7ce115abc2 100644 (file)
@@ -26,6 +26,7 @@ let inventory_filename = Util_globs_inventory.inventory_filename
 let _installation_uuid         = "INSTALLATION_UUID"
 let _control_domain_uuid       = "CONTROL_DOMAIN_UUID"
 let _management_interface      = "MANAGEMENT_INTERFACE"
+let _build_number           = "BUILD_NUMBER"
 
 (* Optional keys: *)
 let _current_interfaces                = "CURRENT_INTERFACES"
@@ -45,7 +46,8 @@ let minimum_default_entries () =
   let dom0_uuid = Uuid.string_of_uuid (Uuid.make_uuid ()) in
   [ _installation_uuid, host_uuid;
     _control_domain_uuid, dom0_uuid;
-    _management_interface, "" ]
+    _management_interface, "";
+    _build_number, "0" ]
 
 (* trim any quotes off the ends *)
 let strip_quotes v =