Formatted python files to follow PEP 8 python code standards.
- Changed the python files in the openbmc-test-automation
directory to conform to python code style standards with
the exception of E402 and E501.
- Resolves openbmc/openbmc-test-automation#1308
Change-Id: I109995c2d248f5a6bb2c0e3c76a6144c8f3aac2e
Signed-off-by: Joy Onyerikwu <onyekachukwu.joy.onyerikwu@ibm.com>
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/state_map.py b/lib/state_map.py
index 191de65..a54ea6b 100644
--- a/lib/state_map.py
+++ b/lib/state_map.py
@@ -104,8 +104,8 @@
BootProgress and OperatingSystemState.
"""
- status, state = keyword.run_key("Read Properties " +
- var.SYSTEM_STATE_URI + "enumerate")
+ status, state = keyword.run_key("Read Properties "
+ + var.SYSTEM_STATE_URI + "enumerate")
bmc_state = state[var.SYSTEM_STATE_URI + 'bmc0']['CurrentBMCState']
chassis_state = \
state[var.SYSTEM_STATE_URI + 'chassis0']['CurrentPowerState']
@@ -125,9 +125,10 @@
Validate a given set of states is valid.
Description of argument(s):
- boot_type Boot type (e.g. off/running/host booted etc.)
- state_set State set
- (e.g.bmc,chassis,host,BootProgress,OperatingSystemState)
+ boot_type Boot type (e.g. off/running/host booted
+ etc.)
+ state_set State set (e.g.bmc,chassis,host,
+ BootProgress,OperatingSystemState)
"""
if state_set in set(VALID_BOOT_STATES[boot_type]):