Commit f9094543 authored by David Johnson's avatar David Johnson

Patch Heat in Stein for python3 support.

parent a8633044
--- /usr/lib/python3/dist-packages/heat_dashboard/content/stacks/forms.py~ 2019-03-20 09:37:53.000000000 -0600
+++ /usr/lib/python3/dist-packages/heat_dashboard/content/stacks/forms.py 2019-06-12 12:57:26.893245322 -0600
@@ -204,7 +204,7 @@
LOG.info('got upload %s', log_template_name)
tpl = files[upload_str].read()
- if tpl.startswith('{'):
+ if tpl.startswith(six.b('{')):
try:
json.loads(tpl)
except Exception as e:
......@@ -2799,6 +2799,10 @@ if [ -z "${HEAT_DBPASS}" ]; then
if [ $OSVERSION -ge $OSQUEENS ]; then
maybe_install_packages ${PYPKGPREFIX}-heat-dashboard
fi
if [ $OSVERSION -ge $OSSTEIN ]; then
patch -d / -p0 < $DIRNAME/etc/heat-dashboard-python3-bytes.patch
service_restart apache2
fi
crudini --set /etc/heat/heat.conf database \
connection "${DBDSTRING}://heat:${HEAT_DBPASS}@$CONTROLLER/heat"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment