[PATCH skeleton] Replace BUILD_ID with VERSION_ID in then inventory

OpenBMC Patches openbmc-patches at stwcx.xyz
Tue Apr 26 06:20:51 AEST 2016


From: Adriana Kobylak <anoo at us.ibm.com>

Add VERSION_ID to the inventory instead of BUILD_ID because
the version (git tag) is the value that gets updated during
a firmware update, the build id remains constant.
---
 bin/inventory_items.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/inventory_items.py b/bin/inventory_items.py
index 6320f90..0a90569 100755
--- a/bin/inventory_items.py
+++ b/bin/inventory_items.py
@@ -71,7 +71,7 @@ def getVersion():
 		for line in f:
 			p = line.rstrip('\n')
 			parts = line.rstrip('\n').split('=')
-			if (parts[0] == "BUILD_ID"):
+			if (parts[0] == "VERSION_ID"):
 				version = parts[1]
 	return version
 
-- 
2.8.1




More information about the openbmc mailing list