Type min_part_hours,part_power,repl_number as int
This PR ensures that if a string is entered as the var it will be forced to an "int" type, which is expected by the script. Change-Id: I8d7f3c4894c2b0975893ebb30b734ae7fccfbc22
This commit is contained in:
parent
3840b3807e
commit
a894972d6a
@ -30,9 +30,9 @@
|
||||
{### Create the builder dict #}
|
||||
{% set builder = {} %}
|
||||
{### This is a hacky way of updating the builder dict #}
|
||||
{% set _update = builder.update({'min_part_hours':min_part_hours}) %}
|
||||
{% set _update = builder.update({'repl_number':repl_number}) %}
|
||||
{% set _update = builder.update({'part_power':part_power}) %}
|
||||
{% set _update = builder.update({'min_part_hours':min_part_hours|int}) %}
|
||||
{% set _update = builder.update({'repl_number':repl_number|int}) %}
|
||||
{% set _update = builder.update({'part_power':part_power|int}) %}
|
||||
{% set _update = builder.update({'builder_file':builder_file}) %}
|
||||
{### Now we need to add the drives #}
|
||||
{### Create an update the builder dict to have drives as an empty list #}
|
||||
|
Loading…
x
Reference in New Issue
Block a user