fix the pep8 check 05/50605/1
authordongwenjuan <dong.wenjuan@zte.com.cn>
Mon, 15 Jan 2018 01:43:46 +0000 (09:43 +0800)
committerdongwenjuan <dong.wenjuan@zte.com.cn>
Mon, 15 Jan 2018 01:43:46 +0000 (09:43 +0800)
Change-Id: I91b8b6cd07d859a1d1abdc25f015a3c3b2756fab
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
doctor_tests/installer/apex.py
doctor_tests/installer/daisy.py

index aaacb38..90304a2 100644 (file)
@@ -96,13 +96,13 @@ class ApexInstaller(BaseInstaller):
 
     def setup_stunnel(self):
         self.log.info('Setup ssh stunnel in controller nodes'
-                      ' in Apex installer......')
+                      'in Apex installer......')
         for node_ip in self.controllers:
             cmd = ("ssh -o UserKnownHostsFile=/dev/null"
-                   "-o StrictHostKeyChecking=no"
-                   "-i %s %s@%s -R %s:localhost:%s"
-                   "sleep 600 > ssh_tunnel.%s.log"
-                   "2>&1 < /dev/null &"
+                   " -o StrictHostKeyChecking=no"
+                   " -i %s %s@%s -R %s:localhost:%s"
+                   " sleep 600 > ssh_tunnel.%s.log"
+                   " 2>&1 < /dev/null &"
                    % (self.key_file,
                       self.node_user_name,
                       node_ip,
index 65d7a7e..3b1fbb2 100644 (file)
@@ -97,11 +97,16 @@ class DaisyInstaller(BaseInstaller):
             self.nova.flavors.create(self.conf.flavor, 512, 1, 1)
 
     def setup_stunnel(self):
-        self.log.info('Setup ssh stunnel in controller nodes in Daisy installer......')
+        self.log.info('Setup ssh stunnel in controller nodes'
+                      'in Daisy installer......')
         for node_ip in self.controllers:
-            cmd = "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i %s %s@%s -R %s:localhost:%s sleep 600 > ssh_tunnel.%s 2>&1 < /dev/null &" \
-                  % (self.key_file, self.node_user_name, node_ip,
-                     self.conf.consumer.port, self.conf.consumer.port, node_ip)
+            cmd = ("ssh -o UserKnownHostsFile=/dev/null"
+                   " -o StrictHostKeyChecking=no"
+                   " -i %s %s@%s -R %s:localhost:%s"
+                   " sleep 600 > ssh_tunnel.%s 2>&1 < /dev/null &"
+                   % (self.key_file, self.node_user_name,
+                      node_ip, self.conf.consumer.port,
+                      self.conf.consumer.port, node_ip))
             server = subprocess.Popen(cmd, shell=True)
             self.servers.append(server)
             server.communicate()