redfish login() not __inited__: improved message
Also, fixed Rprint Vars in doc string to show proper use of fmt argument.
Change-Id: If8f65a9191bf0b3b7e6db5d0bb3179e1415d9df4
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/bmc_redfish.py b/lib/bmc_redfish.py
index 3baee67..46e39fb 100644
--- a/lib/bmc_redfish.py
+++ b/lib/bmc_redfish.py
@@ -60,7 +60,9 @@
"""
if not self.__inited__:
- message = "bmc_redfish.__init__() was never successfully run.\n"
+ message = "bmc_redfish.__init__() was never successfully run. It "
+ message += "is likely that the target BMC firmware code level "
+ message += "does not support redfish.\n"
raise ValueError(message)
# Assign default values for username, password, auth where necessary.
openbmc_username = BuiltIn().get_variable_value("${OPENBMC_USERNAME}")
@@ -83,7 +85,7 @@
Example robot code:
${properties}= Get Properties /redfish/v1/Systems/system/
- Rprint Vars 1 properties
+ Rprint Vars properties fmt=terse
Output: