Fix senlin profile create through file upload.

The senlin profile create is failing to pass the file name on form submit
due to missing encode type in the POST request.

Change-Id: I2a3d1a34725e60b6f59c355980fa48be580eceec
This commit is contained in:
sri harsha mekala 2018-10-15 11:28:49 -07:00
parent c780f5e11f
commit dfe85877d6
1 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,10 @@
{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}
{% block form_id %}create_profile_form{% endblock %}
{% block form_action %}{% url 'horizon:cluster:profiles:create' %}{% endblock %}
{% block form_attrs %}enctype="multipart/form-data"{% endblock %}
{% block modal-body-right %}
<h3>{% trans "Description:" %}</h3>
<p>{% trans "A profile encodes the information needed for node creation." %}</p>