- for component in self.openstack_endpoints.values():
- component.compute = self.compute
- component.manage = self.manage
- thread = threading.Thread(target=component._start_flask, args=())
- thread.daemon = True
- thread.name = component.__class__
- thread.start()
+ for c in self.openstack_endpoints.values():
+ c.compute = self.compute
+ c.manage = self.manage
+ c.server_thread = threading.Thread(target=c._start_flask, args=())
+ c.server_thread.daemon = True
+ c.server_thread.name = c.__class__.__name__
+ c.server_thread.start()