From c1b0e7b46b8277d41c75e50465908d4cbc3f3267 Mon Sep 17 00:00:00 2001 From: Jonathan Tripathy Date: Fri, 22 Jan 2016 14:36:40 +0000 Subject: [PATCH] Workaround for https://github.com/bundler/bundler/issues/3187 --- lib/puppet/type/firewallchain.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/type/firewallchain.rb b/lib/puppet/type/firewallchain.rb index 1bbfa77..46cf586 100644 --- a/lib/puppet/type/firewallchain.rb +++ b/lib/puppet/type/firewallchain.rb @@ -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' -- 2.45.2