From a1cec778f74f036f4cb575ba55098c0030bdef7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Mon, 14 Sep 2009 22:15:53 +0300 Subject: [PATCH] Fixed parse errors if $firewall_rules or $firewall_custom variable is empty. --- firewall/manifests/init.pp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/firewall/manifests/init.pp b/firewall/manifests/init.pp index e870c22..3a9a096 100644 --- a/firewall/manifests/init.pp +++ b/firewall/manifests/init.pp @@ -19,6 +19,13 @@ # class firewall { + if ! $firewall_custom { + $firewall_custom = [] + } + if ! $firewall_rules { + $firewall_rules = [] + } + case $operatingsystem { centos,fedora: { include firewall::iptables