Fix a H302 pep error in the api
part of blueprint rest-api-base Change-Id: Icb22572302a98ae43772fd3ed31225cb55bd8b9a
This commit is contained in:
parent
25950a9bde
commit
8cd2ffb226
@ -14,8 +14,9 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import pecan
|
||||
|
||||
from oslo.config import cfg
|
||||
from pecan import make_app
|
||||
|
||||
# Register options for the service
|
||||
API_SERVICE_OPTS = [
|
||||
@ -43,7 +44,7 @@ def setup_app(config):
|
||||
|
||||
app_conf = dict(config.app)
|
||||
|
||||
return make_app(
|
||||
return pecan.make_app(
|
||||
app_conf.pop('root'),
|
||||
logging=getattr(config, 'logging', {}),
|
||||
**app_conf
|
||||
|
Loading…
Reference in New Issue
Block a user