]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/tasks/vstart_runner: flake8 fixes
authorKefu Chai <kchai@redhat.com>
Fri, 19 Jun 2020 11:29:03 +0000 (19:29 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 23 Jun 2020 15:01:27 +0000 (23:01 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/tasks/vstart_runner.py

index 82a7c95ff5d77f1afce1bc98e1af7326a3010542..6ab1591140ee4ff197ae65e8c88aeba7e73fbe3c 100644 (file)
@@ -48,7 +48,6 @@ from IPy import IP
 from unittest import suite, loader
 import unittest
 import platform
-from teuthology import misc
 from teuthology.orchestra.run import Raw, quote
 from teuthology.orchestra.daemon import DaemonGroup
 from teuthology.orchestra.remote import Remote
@@ -1257,9 +1256,9 @@ def exec_test():
             opt_brxnet=f.split('=')[1]
             try:  
                 IP(opt_brxnet)  
-                if IP(opt_brxnet).iptype() is 'PUBLIC':
+                if IP(opt_brxnet).iptype() == 'PUBLIC':
                     raise RuntimeError('is public')
-            except Exception as  e:  
+            except Exception as e:
                 log.error("Invalid ip '{0}' {1}".format(opt_brxnet, e))
                 sys.exit(-1)
         else: