Log PNOR Driver Details
Add 'Get host Software Object Details' Keyword.
Resolves openbmc/openbmc-test-automation#942
Change-Id: Ifd6763b4b5e8dbb122ef56addd0140a24672a20d
Signed-off-by: Sweta Potthuri <spotthur@in.ibm.com>
diff --git a/lib/code_update_utils.robot b/lib/code_update_utils.robot
index 10e2171..ebb48a3 100644
--- a/lib/code_update_utils.robot
+++ b/lib/code_update_utils.robot
@@ -48,6 +48,19 @@
${sw_attributes}= Read Properties ${host_object}
[return] ${sw_attributes}
+Get Host Software Objects Details
+ [Documentation] Return software object details as a list of dictionaries.
+ [Arguments] ${quiet}=${QUIET}
+
+ ${software}= Create List
+
+ ${pnor_details}= Get Software Objects ${VERSION_PURPOSE_HOST}
+ :FOR ${pnor} IN @{pnor_details}
+ \ ${resp}= OpenBMC Get Request ${pnor} quiet=${1}
+ \ ${json}= To JSON ${resp.content}
+ \ Append To List ${software} ${json["data"]}
+
+ [Return] ${software}
Set Host Software Property
[Documentation] Set the host software properties of a given object.