Cannot change instance backing from lvm to image

A float was being passed in for "Instances Logical Volume Size" and the
form field is an integer. The field was hidden on image backing edits
and thus the user could not see the error.

Closes-Bug: 1791998

Change-Id: Ia1f34845a5c01d269c511f707a7f1022ec461a35
Signed-off-by: Kristine Bujold <kristine.bujold@windriver.com>
This commit is contained in:
Kristine Bujold 2018-09-24 16:28:59 -04:00
parent ebb40be340
commit 62ac18051d
2 changed files with 2 additions and 2 deletions

View File

@ -1,2 +1,2 @@
SRC_DIR="starlingx-dashboard"
TIS_PATCH_VER=11
TIS_PATCH_VER=12

View File

@ -233,7 +233,7 @@ class ParamForm(ParamMixin, forms.SelfHandlingForm):
sysinv.LVG_NOVA_BACKING_LVM:
inst_size_mib = sysinv.LVG_NOVA_PARAM_INSTANCES_SIZE_MIB
inst_size_gib = sysinv.LVG_NOVA_PARAM_INSTANCES_SIZE_GIB
size_gib = float(caps.get(inst_size_mib)) / 1024
size_gib = int(caps.get(inst_size_mib)) / 1024
self.fields[inst_size_gib] = \
forms.IntegerField(
label=_("Instances Logical Volume Size"),