diff --git a/tuskar_ui/infrastructure/overcloud/workflows/undeployed_configuration.py b/tuskar_ui/infrastructure/overcloud/workflows/undeployed_configuration.py index 4dd4d08c5..2ec1ed4f0 100644 --- a/tuskar_ui/infrastructure/overcloud/workflows/undeployed_configuration.py +++ b/tuskar_ui/infrastructure/overcloud/workflows/undeployed_configuration.py @@ -31,10 +31,11 @@ def make_field(name, Type, NoEcho, Default, Description, AllowedValues=None, attrs['placeholder'] = _("auto-generate") if Type == 'String': Field = django.forms.CharField - elif Type == 'Integer': - Field = django.forms.IntegerField + elif Type == 'Number': + Field = django.forms.FloatField else: - raise ValueError("Unsupported parameter type in Heat template.") + raise ValueError( + "Unsupported parameter type %r in Heat template." % Type) if NoEcho == 'true': Widget = django.forms.PasswordInput widget_kwargs['render_value'] = True