From 673bbd5678522031a5af8d2fade05b26f0e64a41 Mon Sep 17 00:00:00 2001 From: chenxing Date: Fri, 2 Aug 2019 17:33:04 +0800 Subject: [PATCH] update horizon configuration for python3 migrating Depends-On: https://review.opendev.org/675581 Closes-Bug: #1838719 Partially Implements: blueprint python3-support Change-Id: Ib8bfb130b8490b583539cc264c2d2a2a034b270c --- ansible/roles/horizon/templates/horizon.conf.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ansible/roles/horizon/templates/horizon.conf.j2 b/ansible/roles/horizon/templates/horizon.conf.j2 index c839b25d3f..425a629e80 100644 --- a/ansible/roles/horizon/templates/horizon.conf.j2 +++ b/ansible/roles/horizon/templates/horizon.conf.j2 @@ -1,4 +1,5 @@ -{% set python_path = '/usr/share/openstack-dashboard' if horizon_install_type == 'binary' else '/var/lib/kolla/venv/lib/python2.7/site-packages' %} +{% set python_path = '/usr/share/openstack-dashboard' if horizon_install_type == 'binary' else '/var/lib/kolla/venv/lib/python' + distro_python_version + '/site-packages' %} + Listen {{ api_interface_address }}:{{ horizon_listen_port }} ServerSignature Off