From d94359f8e40520feaa5d660721e74228d3d956d2 Mon Sep 17 00:00:00 2001 From: Yolanda Robla Date: Wed, 3 Feb 2016 17:00:34 +0100 Subject: [PATCH] Force type casting to boolean in dhcp flag That is going to fall under true if we pass it as string, causing our tests to fail. Change-Id: Ie87d624c876f36ad1ded7f9b250c38958cf8937e --- .../roles/bifrost-deploy-nodes-dynamic/templates/dhcp-host.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/bifrost-deploy-nodes-dynamic/templates/dhcp-host.j2 b/playbooks/roles/bifrost-deploy-nodes-dynamic/templates/dhcp-host.j2 index da4b107be..6484dd532 100644 --- a/playbooks/roles/bifrost-deploy-nodes-dynamic/templates/dhcp-host.j2 +++ b/playbooks/roles/bifrost-deploy-nodes-dynamic/templates/dhcp-host.j2 @@ -1,5 +1,5 @@ # This file is managed by bifrost -{% if inventory_dhcp_static_ip %} +{% if inventory_dhcp_static_ip | bool %} {{ nics[0]['mac'] }},{{provisioning_ipv4_address}},{{name}},12h {% else %} {{ nics[0]['mac'] }},{{name}},12h