Update new PDR type info for pldm platform subsytem.
Change-Id: I27b09c132c7dcfdd2c07fc11406b357ad8c1bc22
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/lib/pldm_utils.py b/lib/pldm_utils.py
index 7aec8c0..ea41125 100644
--- a/lib/pldm_utils.py
+++ b/lib/pldm_utils.py
@@ -93,6 +93,13 @@
dict_data1, dict_data2 = vf.split_dict_on_key('containerentitycontainerid', result)
return dict_data1
+ elif 'entitytype' in result:
+ # Example :
+ # entityType: 24576(OEM)
+ # Note: OEM type number is dynamic
+ if 'OEM' in result['entitytype']:
+ result['entitytype'] = 'OEM'
+
# Collect bios strings from bios string table in to list.
# Example output for pldmtool GetBIOSTable --type stringTable
# PLDM StringTable: