Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #3 from smarchive/puppet-lint
Browse files Browse the repository at this point in the history
Fix warnings and errors for puppet-lint
  • Loading branch information
alvagante committed Jan 10, 2013
2 parents 7926780 + 5a66af8 commit ecbe641
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions manifests/init.pp
Expand Up @@ -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 ? {
Expand All @@ -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',
Expand Down

0 comments on commit ecbe641

Please sign in to comment.