Fix bug for pldmtool TC
Change:
Fix below testcase
- Verify_GetBIOSAttributeCurrentValueByHandle
This fix is made to not to put quotes if the string has space
Earlier -> "Power On" => "'Power On'"
Now -> "Power On" => "Power On"
Tested:
Executed pldm/test_pldm_bios.robot suite.
Change-Id: I9cc44bbb3304669c2bc5df032cb7b4353666d02f
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/lib/pldm_utils.py b/lib/pldm_utils.py
index 1d70b36..4e4b8cf 100755
--- a/lib/pldm_utils.py
+++ b/lib/pldm_utils.py
@@ -89,10 +89,6 @@
]
value = re.search(r"\((.*?)\)", attr_values).group(1)
if value:
- # Example:
- # value = '"Power Off"'
- if " " in value:
- value = '"' + value + '"'
value_list.append(value)
else:
value_list.append("")