From b1b0408336c4e7a56b896a0775707fc69b23857b Mon Sep 17 00:00:00 2001 From: david22swan Date: Wed, 28 Sep 2022 11:20:40 +0100 Subject: [PATCH] (maint) Fix for negated physdev_is_* Why confirming that this fix worked as intended it was shown that in fixing the original issue a second one had been uncovered. This should fix the second one without infringing on the first fix. --- lib/puppet/provider/firewall/iptables.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/provider/firewall/iptables.rb b/lib/puppet/provider/firewall/iptables.rb index 65265f1..1458e75 100644 --- a/lib/puppet/provider/firewall/iptables.rb +++ b/lib/puppet/provider/firewall/iptables.rb @@ -551,7 +551,7 @@ Puppet::Type.type(:firewall).provide :iptables, parent: Puppet::Provider::Firewa values.sub(%r{'#{resource_map[bool]} "! "'}, "#{resource_map[bool]} true") else # append `true` to booleans that are not already negated (followed by "!") - values.sub(%r{#{resource_map[bool]}(?=\s|$)(?!"!")}, "#{resource_map[bool]} true") + values.sub(%r{#{resource_map[bool]}(?=\s|$)(?!\s?"!")}, "#{resource_map[bool]} true") end end -- 2.45.2