From bf62341cedabc96d2d9a1d5350f6424ddba3249f Mon Sep 17 00:00:00 2001
From: liyingjun <yingjun.li@kylin-cloud.com>
Date: Tue, 11 Oct 2016 09:50:55 +0800
Subject: [PATCH] Add missing uwsgi for barbican-api Dockerfile

uwsgi is not installed for barbican-api in ubuntu.

Change-Id: Ibaaf7eb9dfae2f88a5a2d9c3b4983d403e52c932
Closes-bug: #1632170
---
 docker/barbican/barbican-api/Dockerfile.j2 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/docker/barbican/barbican-api/Dockerfile.j2 b/docker/barbican/barbican-api/Dockerfile.j2
index df83638e9d..d9c122675c 100644
--- a/docker/barbican/barbican-api/Dockerfile.j2
+++ b/docker/barbican/barbican-api/Dockerfile.j2
@@ -9,7 +9,10 @@ MAINTAINER {{ maintainer }}
     {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
        {% set barbican_api_packages = ['openstack-barbican-api'] %}
     {% elif base_distro in ['ubuntu'] %}
-        {% set barbican_api_packages = ['barbican-api'] %}
+        {% set barbican_api_packages = [
+                'uwsgi-plugin-python',
+                'barbican-api'
+        ] %}
     {% endif %}
 
 {{ macros.install_packages(barbican_api_packages | customizable("packages")) }}