From 5a66af8ad630b502f717af0819ee3519d59509f2 Mon Sep 17 00:00:00 2001 From: Jochen Schalanda Date: Thu, 10 Jan 2013 12:26:50 +0100 Subject: [PATCH] Fix warnings and errors for puppet-lint --- manifests/init.pp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 95998db..227b454 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -20,8 +20,8 @@ # FIXME: Unsure if this should be in firewall or iptables. Maybe both? # iptables-restore v1.3.5: Unknown arg `--dport' # -A INPUT --dport 21 -j REJECT - if ($protocol == "") and ($port) { - fail("FIREWALL: Protocol must be set if port is set.") + if ($protocol == '') and ($port) { + fail('FIREWALL: Protocol must be set if port is set.') } $iptables_chain = $direction ? { @@ -35,8 +35,8 @@ 'drop' => 'DROP', 'reject' => $protocol ? { - 'tcp' => "REJECT --reject-with tcp-reset", - default => "REJECT", + 'tcp' => 'REJECT --reject-with tcp-reset', + default => 'REJECT', }, default => 'ACCEPT',