summaryrefslogtreecommitdiffstats
path: root/src/hardware/LMI_SystemSlotContainerProvider.c
diff options
context:
space:
mode:
authorPeter Schiffer <pschiffe@redhat.com>2013-07-29 14:56:09 +0200
committerPeter Schiffer <pschiffe@redhat.com>2013-07-29 14:56:09 +0200
commit9fdfb5cd97fdb803246bc5fa63b962faae4c7b47 (patch)
treea413700bd2d6fda8e27b3f9a1aec78e9cb43ceff /src/hardware/LMI_SystemSlotContainerProvider.c
parent6bd39a5e4f44bf757767dd8dbc3b906b0396f1ec (diff)
downloadopenlmi-providers-9fdfb5cd97fdb803246bc5fa63b962faae4c7b47.tar.gz
openlmi-providers-9fdfb5cd97fdb803246bc5fa63b962faae4c7b47.tar.xz
openlmi-providers-9fdfb5cd97fdb803246bc5fa63b962faae4c7b47.zip
Hardware: Added additional information to the LMI_Chassis
Added information about tag, model, product name and UUID to the LMI_Chassis.
Diffstat (limited to 'src/hardware/LMI_SystemSlotContainerProvider.c')
-rw-r--r--src/hardware/LMI_SystemSlotContainerProvider.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/hardware/LMI_SystemSlotContainerProvider.c b/src/hardware/LMI_SystemSlotContainerProvider.c
index c752fbe..7a25254 100644
--- a/src/hardware/LMI_SystemSlotContainerProvider.c
+++ b/src/hardware/LMI_SystemSlotContainerProvider.c
@@ -74,11 +74,7 @@ static CMPIStatus LMI_SystemSlotContainerEnumInstances(
LMI_ChassisRef_Init(&lmi_chassis, _cb, ns);
LMI_ChassisRef_Set_CreationClassName(&lmi_chassis,
ORGID "_" CHASSIS_CLASS_NAME);
- if (strcmp(dmi_chassis.serial_number, "Not Specified") == 0) {
- LMI_ChassisRef_Set_Tag(&lmi_chassis, "0");
- } else {
- LMI_ChassisRef_Set_Tag(&lmi_chassis, dmi_chassis.serial_number);
- }
+ LMI_ChassisRef_Set_Tag(&lmi_chassis, dmi_get_chassis_tag(&dmi_chassis));
for (i = 0; i < dmi_slots_nb; i++) {
LMI_SystemSlotContainer_Init(&lmi_slot_container, _cb, ns);