]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Ensure 'WSGIService' derives from oslo_service base class
authorJoshua Harlow <harlowja@yahoo-inc.com>
Thu, 25 Jun 2015 00:54:40 +0000 (17:54 -0700)
committerJoshua Harlow <harlowja@yahoo-inc.com>
Thu, 25 Jun 2015 00:57:10 +0000 (17:57 -0700)
Currently this code will fail due to an isinstance check in
oslo_service that ensures that the services launched are of
the right type.

Closes-Bug: #1468559

Change-Id: I71acc5082aacbfb66d422cec6636ba44ae2c8402

cinder/service.py

index 63142f472b821ff0447e6dfca030ddf4228e40cc..b41f135d363e9ab02c1624bcf72ef19659df9226 100644 (file)
@@ -333,7 +333,7 @@ class Service(service.Service):
                 LOG.exception(_LE('DBError encountered: '))
 
 
-class WSGIService(object):
+class WSGIService(service.ServiceBase):
     """Provides ability to launch API from a 'paste' configuration."""
 
     def __init__(self, name, loader=None):