]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
Workaround for https://github.com/bundler/bundler/issues/3187
authorJonathan Tripathy <jt@puppetlabs.com>
Fri, 22 Jan 2016 14:36:40 +0000 (14:36 +0000)
committerJonathan Tripathy <jt@puppetlabs.com>
Fri, 22 Jan 2016 14:36:40 +0000 (14:36 +0000)
lib/puppet/type/firewallchain.rb

index 1bbfa778349957d54100d0b21be9963c226a4e83..46cf586ab300eec1819694e57835466e5e66a403 100644 (file)
@@ -59,7 +59,7 @@ Puppet::Type.newtype(:firewallchain) do
           if chain =~ /^(BROUTING|FORWARD)$/
             raise ArgumentError, "PREROUTING, POSTROUTING, INPUT, and OUTPUT are the only inbuilt chains that can be used in table 'nat'"
           end
-          if Gem::Version.new(Facter['kernelmajversion'].value) < Gem::Version.new('3.7') and protocol =~/^(IP(v6)?)?$/
+          if Gem::Version.new(Facter['kernelmajversion'].value.dup) < Gem::Version.new('3.7') and protocol =~/^(IP(v6)?)?$/
             raise ArgumentError, "table nat isn't valid in IPv6. You must specify ':IPv4' as the name suffix"
           end
         when 'raw'