Avoid potential problems using "| bool"
Making sure that the evaluated variable is a boolean makes the code clearer and avoids potential problems, for example, if the variable is defined as false with lower f (false instead of False) Change-Id: Ia07f52c8581f5373702fd318a4ef052de95c905f Signed-off-by: Manuel Buil <mbuil@suse.com>
This commit is contained in:
parent
4e65227c43
commit
67a23e455a
|
@ -7,7 +7,7 @@
|
|||
# Listen on this specific port instead of the standard DNS port
|
||||
# (53). Setting this to zero completely disables DNS function,
|
||||
# leaving only DHCP and/or TFTP.
|
||||
{% if disable_dnsmasq_dns %}
|
||||
{% if disable_dnsmasq_dns | bool == true %}
|
||||
port=0
|
||||
{% else %}
|
||||
port=53
|
||||
|
@ -63,7 +63,7 @@ domain={{ domain }}
|
|||
# service.
|
||||
{% if testing | bool == true %}
|
||||
dhcp-range=192.168.122.2,192.168.122.254,12h
|
||||
{% elif inventory_dhcp %}
|
||||
{% elif inventory_dhcp | bool == true %}
|
||||
dhcp-range={{dhcp_pool_start}},{{dhcp_pool_end}},static,{{dhcp_static_mask}},{{dhcp_lease_time}}
|
||||
{% else %}
|
||||
dhcp-range={{dhcp_pool_start}},{{dhcp_pool_end}},{{dhcp_lease_time}}
|
||||
|
|
Loading…
Reference in New Issue