Skip to content

Commit

Permalink
Merge pull request #407 from hunner/redirect_validate
Browse files Browse the repository at this point in the history
(MODULES-1086) toports is not reqired with jump == REDIRECT
  • Loading branch information
cyberious committed Sep 17, 2014
2 parents 2df558c + a626cf2 commit e8dca83
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/puppet/type/firewall.rb
Expand Up @@ -1090,13 +1090,6 @@ def should_to_s(value)
end
end

if value(:jump).to_s == "REDIRECT"
unless value(:toports)
self.fail "Parameter jump => REDIRECT missing mandatory toports " \
"parameter"
end
end

if value(:jump).to_s == "MASQUERADE"
unless value(:table).to_s =~ /nat/
self.fail "Parameter jump => MASQUERADE only applies to table => nat"
Expand Down

0 comments on commit e8dca83

Please sign in to comment.