From 871860be98ba68e9812ec4d2e363e121f20121c1 Mon Sep 17 00:00:00 2001 From: Thomas Herve Date: Tue, 21 Feb 2017 18:29:26 -0500 Subject: [PATCH] Set wsgi name to application The standard name for the WSGI callable is application, let's use that. We'll keep app for compatiblity purposes. Change-Id: I2138ef05b985dcfeba108c8a5441206b2c4ae1a7 --- devstack/plugin.sh | 1 - zaqar/transport/wsgi/app.py | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index bb98c7f81..aa74cbc50 100755 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -156,7 +156,6 @@ function configure_zaqar { iniset $ZAQAR_UWSGI_CONF uwsgi processes 1 iniset $ZAQAR_UWSGI_CONF uwsgi threads 4 iniset $ZAQAR_UWSGI_CONF uwsgi wsgi-file $ZAQAR_DIR/zaqar/transport/wsgi/app.py - iniset $ZAQAR_UWSGI_CONF uwsgi callable app iniset $ZAQAR_UWSGI_CONF uwsgi master true iniset $ZAQAR_UWSGI_CONF uwsgi add-header "Connection: close" diff --git a/zaqar/transport/wsgi/app.py b/zaqar/transport/wsgi/app.py index c2d3b26ad..6c3098a53 100644 --- a/zaqar/transport/wsgi/app.py +++ b/zaqar/transport/wsgi/app.py @@ -39,4 +39,6 @@ log.setup(conf, 'zaqar') boot = bootstrap.Bootstrap(conf) conf.drivers.transport = 'wsgi' -app = boot.transport.app +application = boot.transport.app +# Keep the old name for compatibility +app = application