diff options
author | Ryota Mibu <r-mibu@cq.jp.nec.com> | 2018-01-15 06:28:34 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-01-15 06:28:34 +0000 |
commit | 8b4fa81e06057e2e0fbda2071c6fbf46cda7a45f (patch) | |
tree | 9ebcef927ac6a845478929f185b46a9ee1c20f6e /doctor_tests/installer | |
parent | 776ad2a555b52a6d435f897a11217d669e88bca8 (diff) | |
parent | 3883c8521ff02dc75c377970b8cae271538fdb42 (diff) |
Merge "fix the pep8 check"
Diffstat (limited to 'doctor_tests/installer')
-rw-r--r-- | doctor_tests/installer/apex.py | 10 | ||||
-rw-r--r-- | doctor_tests/installer/daisy.py | 13 |
2 files changed, 14 insertions, 9 deletions
diff --git a/doctor_tests/installer/apex.py b/doctor_tests/installer/apex.py index aaacb385..90304a27 100644 --- a/doctor_tests/installer/apex.py +++ b/doctor_tests/installer/apex.py @@ -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, diff --git a/doctor_tests/installer/daisy.py b/doctor_tests/installer/daisy.py index 65d7a7ea..3b1fbb24 100644 --- a/doctor_tests/installer/daisy.py +++ b/doctor_tests/installer/daisy.py @@ -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() |