black: re-format
black and isort are enabled in the openbmc-build-scripts on Python files
to have a consistent formatting. Re-run the formatter on the whole
repository.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I944f1915ece753f72a3fa654902d445a9749d0f9
diff --git a/data/pel_variables.py b/data/pel_variables.py
index 7c0c823..e5c3d6f 100644
--- a/data/pel_variables.py
+++ b/data/pel_variables.py
@@ -5,41 +5,72 @@
"""
PEL_DETAILS = {
- 'CreatorID': 'BMC',
- 'CompID': '0x1000',
- 'Subsystem': 'Platform Firmware',
- 'Message': 'This is a test error',
- 'SRC': 'BD8D1002',
- 'Sev': 'Unrecoverable Error'}
+ "CreatorID": "BMC",
+ "CompID": "0x1000",
+ "Subsystem": "Platform Firmware",
+ "Message": "This is a test error",
+ "SRC": "BD8D1002",
+ "Sev": "Unrecoverable Error",
+}
-ERROR_LOG_CREATE_BASE_CMD = 'busctl call xyz.openbmc_project.Logging /xyz/openbmc_project/logging \
- xyz.openbmc_project.Logging.Create Create ssa{ss} '
+ERROR_LOG_CREATE_BASE_CMD = (
+ "busctl call xyz.openbmc_project.Logging /xyz/openbmc_project/logging "
+ " xyz.openbmc_project.Logging.Create Create ssa{ss} "
+)
-CMD_INTERNAL_FAILURE = ERROR_LOG_CREATE_BASE_CMD + 'xyz.openbmc_project.Common.Error.InternalFailure \
- xyz.openbmc_project.Logging.Entry.Level.Error 0'
+CMD_INTERNAL_FAILURE = (
+ ERROR_LOG_CREATE_BASE_CMD
+ + "xyz.openbmc_project.Common.Error.InternalFailure "
+ " xyz.openbmc_project.Logging.Entry.Level.Error 0"
+)
-CMD_FRU_CALLOUT = ERROR_LOG_CREATE_BASE_CMD + 'xyz.openbmc_project.Sensor.Device.Error.ReadFailure \
- xyz.openbmc_project.Logging.Entry.Level.Error 2 "TIMEOUT_IN_MSEC" "5" "CALLOUT_INVENTORY_PATH" \
- "/xyz/openbmc_project/inventory/system/chassis/motherboard"'
+CMD_FRU_CALLOUT = (
+ ERROR_LOG_CREATE_BASE_CMD
+ + "xyz.openbmc_project.Sensor.Device.Error.ReadFailure "
+ ' xyz.openbmc_project.Logging.Entry.Level.Error 2 "TIMEOUT_IN_MSEC" "5"'
+ ' "CALLOUT_INVENTORY_PATH" '
+ ' "/xyz/openbmc_project/inventory/system/chassis/motherboard"'
+)
-CMD_PROCEDURAL_SYMBOLIC_FRU_CALLOUT = ERROR_LOG_CREATE_BASE_CMD + 'org.open_power.Logging.Error.TestError1 \
- xyz.openbmc_project.Logging.Entry.Level.Error 0'
+CMD_PROCEDURAL_SYMBOLIC_FRU_CALLOUT = (
+ ERROR_LOG_CREATE_BASE_CMD
+ + "org.open_power.Logging.Error.TestError1 "
+ " xyz.openbmc_project.Logging.Entry.Level.Error 0"
+)
-CMD_INFORMATIONAL_ERROR = ERROR_LOG_CREATE_BASE_CMD + 'xyz.openbmc_project.Common.Error.TestError2 \
- xyz.openbmc_project.Logging.Entry.Level.Informational 0'
+CMD_INFORMATIONAL_ERROR = (
+ ERROR_LOG_CREATE_BASE_CMD
+ + "xyz.openbmc_project.Common.Error.TestError2 "
+ " xyz.openbmc_project.Logging.Entry.Level.Informational 0"
+)
-CMD_INVENTORY_PREFIX = 'busctl get-property xyz.openbmc_project.Inventory.Manager \
- /xyz/openbmc_project/inventory/system/chassis/motherboard'
+CMD_INVENTORY_PREFIX = (
+ "busctl get-property xyz.openbmc_project.Inventory.Manager "
+ " /xyz/openbmc_project/inventory/system/chassis/motherboard"
+)
-CMD_UNRECOVERABLE_ERROR = ERROR_LOG_CREATE_BASE_CMD + 'org.open_power.Logging.Error.TestError1 \
- xyz.openbmc_project.Logging.Entry.Level.Error 0'
+CMD_UNRECOVERABLE_ERROR = (
+ ERROR_LOG_CREATE_BASE_CMD
+ + "org.open_power.Logging.Error.TestError1 "
+ " xyz.openbmc_project.Logging.Entry.Level.Error 0"
+)
-CMD_PREDICTIVE_ERROR = ERROR_LOG_CREATE_BASE_CMD + \
- 'xyz.openbmc_project.Sensor.Threshold.Error.TemperatureWarningLow \
- xyz.openbmc_project.Logging.Entry.Level.Warning 0'
+CMD_PREDICTIVE_ERROR = (
+ ERROR_LOG_CREATE_BASE_CMD
+ + "xyz.openbmc_project.Sensor.Threshold.Error.TemperatureWarningLow "
+ " xyz.openbmc_project.Logging.Entry.Level.Warning 0"
+)
-CMD_UNRECOVERABLE_HOST_ERROR = ERROR_LOG_CREATE_BASE_CMD + 'xyz.openbmc_project.Host.Error.Event \
- xyz.openbmc_project.Logging.Entry.Level.Error 1 RAWPEL /tmp/FILE_NBMC_UNRECOVERABLE'
+CMD_UNRECOVERABLE_HOST_ERROR = (
+ ERROR_LOG_CREATE_BASE_CMD
+ + "xyz.openbmc_project.Host.Error.Event "
+ " xyz.openbmc_project.Logging.Entry.Level.Error 1 RAWPEL"
+ " /tmp/FILE_NBMC_UNRECOVERABLE"
+)
-CMD_INFORMATIONAL_HOST_ERROR = ERROR_LOG_CREATE_BASE_CMD + 'xyz.openbmc_project.Host.Error.Event \
- xyz.openbmc_project.Logging.Entry.Level.Error 1 RAWPEL /tmp/FILE_HOST_INFORMATIONAL'
+CMD_INFORMATIONAL_HOST_ERROR = (
+ ERROR_LOG_CREATE_BASE_CMD
+ + "xyz.openbmc_project.Host.Error.Event "
+ " xyz.openbmc_project.Logging.Entry.Level.Error 1 RAWPEL"
+ " /tmp/FILE_HOST_INFORMATIONAL"
+)