From b83fabd974ae78f8dd7b9f5d6b82235f059ec7bc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Diemer?= <stephane.diemer@ubicast.eu>
Date: Tue, 28 Mar 2017 10:05:56 +0200
Subject: [PATCH] PEP8 again...

---
 tests/test_mediaworker.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/test_mediaworker.py b/tests/test_mediaworker.py
index 956c659c..4c97102e 100755
--- a/tests/test_mediaworker.py
+++ b/tests/test_mediaworker.py
@@ -74,6 +74,7 @@ def check_celerity_connectivity(ip):
     print('%sFailed to reach tasks server from MediaWorker "%s".%s' % (RED, ip, DEF))
     return False
 
+
 def check_mediaworker_in_whitelist(ip):
     nginx_vhosts_path = '/etc/nginx/sites-enabled'
     vhosts = os.listdir(nginx_vhosts_path)
@@ -83,7 +84,7 @@ def check_mediaworker_in_whitelist(ip):
             with open(vhost_path, 'r') as f:
                 d = f.read()
                 if 'msuser_whitelist' in d:
-                    if not ip in d:
+                    if ip not in d:
                         print('%sMediaWorker ip %s is not in %s whitelist%s' % (RED, ip, v, DEF))
                         return False
     return True
@@ -101,8 +102,8 @@ for worker_ip in worker_ips.split(','):
         else:
             if not check_celerity_connectivity(worker_ip):
                 all_ok = False
-            #if not run_tests(worker_ip):
-            #    all_ok = False
+            # if not run_tests(worker_ip):
+            #     all_ok = False
             if not check_mediaworker_in_whitelist(worker_ip):
                 all_ok = False
 if not tested:
-- 
GitLab