From 03158e5ae70bd2bedbb329038931094ba4cbef43 Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Fri, 6 Jan 2017 10:06:39 -0500 Subject: Fix puppet warning for empty value Unknown variable: 'haproxy_ssl_firewall_rules' when public_ssl_port is empty. Fixing it by setting an empty hash in this case. Change-Id: If864732262852ef79ebb91ee77902c86b847072a --- manifests/haproxy/endpoint.pp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'manifests/haproxy') diff --git a/manifests/haproxy/endpoint.pp b/manifests/haproxy/endpoint.pp index 0bba245..2f60b24 100644 --- a/manifests/haproxy/endpoint.pp +++ b/manifests/haproxy/endpoint.pp @@ -166,6 +166,8 @@ define tripleo::haproxy::endpoint ( 'dport' => $public_ssl_port, }, } + } else { + $haproxy_ssl_firewall_rules = {} } $firewall_rules = merge($haproxy_firewall_rules, $haproxy_ssl_firewall_rules) if $service_port or $public_ssl_port { -- cgit 1.2.3-korg