]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
fix bridge value validation
authorAron Parsons <aronparsons@gmail.com>
Mon, 29 Sep 2014 00:17:07 +0000 (20:17 -0400)
committerJonathan Tripathy <jonathan.tripathy@puppetlabs.com>
Sun, 18 Jan 2015 23:01:21 +0000 (15:01 -0800)
lib/puppet/type/firewall.rb

index 67060c3e92b96ef66f4dd4a31987f2544d643118..ebfc3b8624414ff296badbd9b5ee5def558a8000 100644 (file)
@@ -1204,9 +1204,9 @@ Puppet::Type.newtype(:firewall) do
       self.fail "Parameter 'stat_probability' requires 'stat_mode' to be set to 'random'"
     end
 
-    if value(:bridged)
+    if value(:bridge)
       unless value(:chain).to_s =~ /FORWARD/
-        self.fail "Parameter isbridged only applies to the FORWARD chain"
+        self.fail "Parameter bridge only applies to the FORWARD chain"
       end
     end