Fix E* pep8 warnings
The list of fixed pep8 errors:
E122, E127, E128, E226, E231, E241, E265, E302, E305, E306, E501
Change-Id: I89fbc7748f24bfdb7dc765d08624a8898654f698
Reviewed-on: https://review.gerrithub.io/379375
Reviewed-by: Dennis Dmitriev <dis.xcom@gmail.com>
Tested-by: Dennis Dmitriev <dis.xcom@gmail.com>
diff --git a/tcp_tests/managers/k8smanager.py b/tcp_tests/managers/k8smanager.py
index 04222d9..f02c843 100644
--- a/tcp_tests/managers/k8smanager.py
+++ b/tcp_tests/managers/k8smanager.py
@@ -55,10 +55,10 @@
pillar='kubernetes:pool:apiserver:host')
k8s_proxy_ip = set([ip
for item in k8s_proxy_ip_pillars
- for node,ip in item.items() if ip])
+ for node, ip in item.items() if ip])
k8s_hosts = set([ip
- for item in k8s_hosts
- for node,ip in item.items() if ip])
+ for item in k8s_hosts
+ for node, ip in item.items() if ip])
assert len(k8s_hosts) == 1, (
"Found more than one Kubernetes API hosts in pillars:{0}, "
"expected one!").format(k8s_hosts)
@@ -253,10 +253,12 @@
:param deploy_name: str, deploy name
:return: bool
"""
- deploy = self.api.deployments.get(name=deploy_name, namespace=namespace)
+ deploy = self.api.deployments.get(name=deploy_name,
+ namespace=namespace)
return deploy.status.available_replicas == deploy.status.replicas
- def wait_deploy_ready(self, deploy_name, namespace=None, timeout=60, interval=5):
+ def wait_deploy_ready(self, deploy_name, namespace=None, timeout=60,
+ interval=5):
"""Wait until all pods are scheduled on nodes
:param deploy_name: str, deploy name