Skip to content

Commit a0bcf90

Browse files
committed
With that knowledge, we can also set min to 0.5.
Signed-off-by: Kurt Garloff <kurt@garloff.de>
1 parent 6532f90 commit a0bcf90

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tests/iaas/scs_0100_flavor_naming/flavor-form.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def make_component_form(spec, component):
126126
print(f'\t <label for="{fname}">{fdesc[2:]}:</label><br/>')
127127
# FIXME: This is a hack: we hardcode step=2 or 0.5 knowing that RAM is the only float
128128
step = 2 if value >= 10 else 0.5
129-
print(f'\t <input type="number" name="{path}" id="{fname}" min=0 step={step} value="{value}" size=5/>')
129+
print(f'\t <input type="number" name="{path}" id="{fname}" min=0.5 step={step} value="{value}" size=5/>')
130130
elif fdesc[0] == "#":
131131
# Float number => NUMBER
132132
if fdesc[1] == ".":

0 commit comments

Comments
 (0)