Location codes on Hardware status-Inventory and LEDs
Display location number on hardware inventory items
Signed-off-by: Sneha Patel <Snehaben.Patel@ibm.com>
Change-Id: Ib5555191f21ac4546d0b2e2af5b395aaa3a5357e
diff --git a/src/store/modules/HardwareStatus/PowerSupplyStore.js b/src/store/modules/HardwareStatus/PowerSupplyStore.js
index f7be280..dc7691d 100644
--- a/src/store/modules/HardwareStatus/PowerSupplyStore.js
+++ b/src/store/modules/HardwareStatus/PowerSupplyStore.js
@@ -23,6 +23,7 @@
PowerInputWatts,
SerialNumber,
SparePartNumber,
+ Location,
Status = {},
} = powerSupply;
return {
@@ -38,6 +39,7 @@
powerInputWatts: PowerInputWatts,
name: Name,
sparePartNumber: SparePartNumber,
+ locationNumber: Location?.PartLocation?.ServiceLabel,
statusState: Status.State,
};
});