Update inventory data
Resolves openbmc/openbmc-test-automation#698
Change-Id: I3df048f7ef501a3db5ad161e2524dcccbcde6fff
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/bin/generate_inventory b/bin/generate_inventory
index 2aa9e93..ce5973d 100755
--- a/bin/generate_inventory
+++ b/bin/generate_inventory
@@ -13,7 +13,7 @@
from gen_print import *
# This list will be longer when more development codes are available.
-inventory_items = ['fru', 'core']
+inventory_items = ['fru', 'core', 'fan']
print_var(inventory_items)
fru_inventory_file_path = 'inventory.py'
print_var(fru_inventory_file_path)
@@ -41,9 +41,15 @@
yaml_core_list = [ 'Inventory/Item.interface.yaml',
'State/Decorator/OperationalStatus.interface.yaml',
]
+
+# yaml file paths for fan.
+yaml_fan_list = [ 'Inventory/Item.interface.yaml',
+ 'State/Decorator/OperationalStatus.interface.yaml',
+ ]
# Append to master list
yaml_master_list.append(yaml_fru_list)
yaml_master_list.append(yaml_core_list)
+yaml_master_list.append(yaml_fan_list)
print_var(yaml_master_list)
diff --git a/data/inventory.py b/data/inventory.py
index c20b551..9d2674d 100644
--- a/data/inventory.py
+++ b/data/inventory.py
@@ -4,6 +4,11 @@
"Present",
"Functional"
],
+ "fan":[
+ "PrettyName",
+ "Present",
+ "Functional"
+ ],
"fru":[
"PrettyName",
"Present",