]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Remove redundant timeout assignment
authorZack Cerza <zack@redhat.com>
Tue, 16 Aug 2016 23:04:38 +0000 (17:04 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 16 Aug 2016 23:07:33 +0000 (17:07 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/orchestra/console.py

index 4950d40a918c917658456d16adc2e304d81caefa..85e905546c5a4a482961af8d50fdf791d19090e1 100644 (file)
@@ -54,8 +54,6 @@ class PhysicalConsole():
     def _exit_session(self, child, timeout=None):
         child.send('~.')
         t = timeout or self.timeout
-        if not t:
-            t = self.timeout
         r = child.expect(
             ['terminated ipmitool', pexpect.TIMEOUT, pexpect.EOF], timeout=t)
         if r != 0: