Clean up pep8 E123 and E124 violations
Fixed E123 and E124 errors.
All ignores are to be removed in the next sequence of patches.
Change-Id: Ie5dc0cd6b0cbdf00f403cb1a039c499a2fca869e
diff --git a/stress/driver.py b/stress/driver.py
index 35004bb..3032d58 100644
--- a/stress/driver.py
+++ b/stress/driver.py
@@ -36,7 +36,7 @@
filename="stress.debug.log",
filemode="w",
level=logging.DEBUG,
- )
+)
# define a Handler which writes INFO messages or higher to the sys.stdout
_console = logging.StreamHandler()
diff --git a/stress/test_server_actions.py b/stress/test_server_actions.py
index 87b1067..5ba03e1 100644
--- a/stress/test_server_actions.py
+++ b/stress/test_server_actions.py
@@ -117,8 +117,7 @@
self._logger.info('machine %s ACTIVE -> %s' %
(self._target['id'], reboot_state))
self._state.set_instance_state(self._target['id'],
- (self._target, reboot_state)
- )
+ (self._target, reboot_state))
self._retry_state = self.States.ACTIVE_CHECK
elif server_state == 'ACTIVE':
# machine must have gone ACTIVE -> REBOOT ->ACTIVE
diff --git a/stress/test_servers.py b/stress/test_servers.py
index 3075045..1a4b830 100644
--- a/stress/test_servers.py
+++ b/stress/test_servers.py
@@ -67,20 +67,19 @@
'metadata': {
'key1': 'value1',
'key2': 'value2',
- },
+ },
'imageRef': _image_ref,
'flavorRef': _flavor_ref,
'adminPass': 'testpwd',
- 'key_name': _key_name
- }
+ 'key_name': _key_name,
+ }
TestCreateVM._vm_id = TestCreateVM._vm_id + 1
- response, body = manager.servers_client.create_server(
- expected_server['name'],
- _image_ref,
- _flavor_ref,
- meta=expected_server['metadata'],
- adminPass=expected_server['adminPass']
- )
+ create_server = manager.servers_client.create_server
+ response, body = create_server(expected_server['name'],
+ _image_ref,
+ _flavor_ref,
+ meta=expected_server['metadata'],
+ adminPass=expected_server['adminPass'])
if (response.status != 202):
self._logger.error("response: %s" % response)