]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
outiface requires the output chain
authorJonathan Boyett <jonathan@failingservers.com>
Wed, 11 May 2011 16:44:14 +0000 (09:44 -0700)
committerJonathan Boyett <jonathan@failingservers.com>
Wed, 11 May 2011 16:44:14 +0000 (09:44 -0700)
lib/puppet/type/firewall.rb

index 0bb349e37825247d8d2ba47a080d1ceda362b1e1..ba8b8ea7ddaf6074d2d22a7d8f884e73fdc49357 100644 (file)
@@ -226,9 +226,9 @@ Puppet::Type.newtype(:firewall) do
     end
 
     if value(:outiface)
-      unless value(:chain).to_s =~ /INPUT|FORWARD|PREROUTING/
+      unless value(:chain).to_s =~ /OUTPUT|FORWARD|PREROUTING/
         self.fail "Parameter outiface only applies to chains " \
-          "INPUT,FORWARD,PREROUTING"
+          "OUTPUT,FORWARD,PREROUTING"
       end
     end