Fixes PEP8 error E121
Fixed E121 errors where continuation line indentation is not a multiple of four
Change-Id: I267036c4c95aaa772170f4f23b675fa71abb4036
diff --git a/stress/test_floating_ips.py b/stress/test_floating_ips.py
index f23dca2..9d89510 100755
--- a/stress/test_floating_ips.py
+++ b/stress/test_floating_ips.py
@@ -36,14 +36,13 @@
return None
floating_ip.change_pending = True
timeout = int(kwargs.get('timeout', 60))
+ cli = manager.floating_ips_client
if floating_ip.server_id is None:
server = random.choice(self.server_ids)
address = floating_ip.address
self._logger.info('Adding %s to server %s' % (address, server))
- resp, body =\
- manager.floating_ips_client.associate_floating_ip_to_server(
- address,
- server)
+ resp, body = cli.associate_floating_ip_to_server(address,
+ server)
if resp.status != 202:
raise Exception("response: %s body: %s" % (resp, body))
floating_ip.server_id = server
@@ -53,9 +52,8 @@
server = floating_ip.server_id
address = floating_ip.address
self._logger.info('Removing %s from server %s' % (address, server))
- resp, body =\
- manager.floating_ips_client.disassociate_floating_ip_from_server(
- address, server)
+ resp, body = cli.disassociate_floating_ip_from_server(address,
+ server)
if resp.status != 202:
raise Exception("response: %s body: %s" % (resp, body))
return VerifyChangeFloatingIp(manager, floating_ip,
diff --git a/stress/test_server_actions.py b/stress/test_server_actions.py
index ca66dec..3b4e71c 100644
--- a/stress/test_server_actions.py
+++ b/stress/test_server_actions.py
@@ -56,8 +56,7 @@
reboot_target = target[0]
# It seems that doing a reboot when in reboot is an error.
try:
- response, body = manager.servers_client.reboot(
- reboot_target['id'],
+ response, body = manager.servers_client.reboot(reboot_target['id'],
_reboot_arg)
except Duplicate:
return