Merge "support pep8 check"
[doctor.git] / tests / inspector.py
index d11da29..0046b99 100644 (file)
@@ -19,7 +19,7 @@ import time
 from keystoneauth1 import session
 import novaclient.client as novaclient
 
-import identity_auth
+import doctor_tests.identity_auth
 
 LOG = doctor_log.Logger('doctor_inspector').getLogger()
 
@@ -54,8 +54,7 @@ class DoctorInspectorSample(object):
         # Pool of novaclients for redundant usage
         for i in range(self.NUMBER_OF_CLIENTS):
             self.novaclients.append(
-                novaclient.Client(self.NOVA_API_VERSION, session=sess,
-                                  connection_pool=True))
+                novaclient.Client(self.NOVA_API_VERSION, session=sess))
         # Normally we use this client for non redundant API calls
         self.nova=self.novaclients[0]
         self.nova.servers.list(detailed=False)
@@ -117,8 +116,7 @@ def get_args():
 
 def main():
     args = get_args()
-    app.run(port=args.port)
-
+    app.run(host='0.0.0.0', port=args.port)
 
 if __name__ == '__main__':
     main()