diff options
author | Emilien Macchi <emilien@redhat.com> | 2017-01-06 10:06:39 -0500 |
---|---|---|
committer | Emilien Macchi <emilien@redhat.com> | 2017-01-06 10:06:39 -0500 |
commit | 03158e5ae70bd2bedbb329038931094ba4cbef43 (patch) | |
tree | d2badbebb670c10b7d9ea1b7a178693ebe1e21ba /manifests/haproxy | |
parent | 8c990738900cd74c2c5c046435517393d1afb92e (diff) |
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
Diffstat (limited to 'manifests/haproxy')
-rw-r--r-- | manifests/haproxy/endpoint.pp | 2 |
1 files changed, 2 insertions, 0 deletions
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 { |