]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Fix flake8 issues 1470/head
authorVasu Kulkarni <vasu@redhat.com>
Tue, 12 May 2020 00:17:03 +0000 (17:17 -0700)
committerVasu Kulkarni <vasu@redhat.com>
Tue, 12 May 2020 01:43:05 +0000 (18:43 -0700)
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
scripts/queue.py
teuthology/misc.py
teuthology/orchestra/console.py

index 07cb4c7472d20e0081670616661170cc917fb4db..8ea5ca5c2ce1c64161596cbb36d1f4f4f6adeff6 100644 (file)
@@ -28,7 +28,7 @@ optional arguments:
   -p, --pause SECONDS   Pause queues for a number of seconds. A value of 0
                         will unpause. If -m is passed, pause that queue,
                         otherwise pause all queues.
-""".format(archive_base=teuthology.config.config.archive_base)
+"""
 
 
 def main():
index 45ddcbd6014c9c27ad81cb31b950217a129c8dd1..41816a256fe4acf42e7deac69880f8f59d8e8d4f 100644 (file)
@@ -1063,7 +1063,7 @@ def get_valgrind_args(testdir, name, preamble, v):
         'env', 'OPENSSL_ia32cap=~0x1000000000000000',
     ])
 
-    val_path = '/var/log/ceph/valgrind'.format(tdir=testdir)
+    val_path = '/var/log/ceph/valgrind'
     if '--tool=memcheck' in v or '--tool=helgrind' in v:
         extra_args = [
             'valgrind',
index 6618710b8a54da1e079e17c45936d640541353c6..457f0b91f3634d07c459481e9be948c8b703c671 100644 (file)
@@ -274,8 +274,7 @@ class PhysicalConsole(RemoteConsole):
         child = self._pexpect_spawn_ipmi('power on')
         child.expect('Chassis Power Control: Up/On', timeout=self.timeout)
         self._wait_for_login()
-        log.info('Power off for {i} seconds completed'.format(
-            s=self.shortname, i=interval))
+        log.info('Power off for {i} seconds completed'.format(i=interval))
 
     def spawn_sol_log(self, dest_path):
         """
@@ -385,5 +384,4 @@ class VirtualConsole(RemoteConsole):
         self.vm_domain.info().destroy()
         time.sleep(interval)
         self.vm_domain.info().create()
-        log.info('Power off for {i} seconds completed'.format(
-            s=self.shortname, i=interval))
+        log.info('Power off for {i} seconds completed'.format(i=interval))