Use the right python plugin for uwsgi

If uwsgi python plugin is installed separately then use
the correct python version plugin

Change-Id: I5050e2d9fe91fd710b47e63524d2fcb90584d131
This commit is contained in:
Eyal 2020-03-18 13:41:58 +02:00
parent 4a740b4a41
commit 35fc976e5f
1 changed files with 4 additions and 1 deletions

View File

@ -95,8 +95,11 @@ def wsgi_file():
def build_uwsgi_server(uwsgi):
major = str(sys.version_info.major)
minor = str(sys.version_info.minor)
plugin = ''.join(('python', major, minor))
args = [
"--if-not-plugin", "python", "--plugin", "python", "--endif",
"--if-not-plugin", "python", "--plugin", plugin, "--endif",
"--http-socket", "%s:%d" % (CONF.api.host, CONF.api.port),
"--master",
"--enable-threads",