From 3bc9e2075bfd9ae60918434851a196f9121ee08c Mon Sep 17 00:00:00 2001 From: Ralf Bosz Date: Wed, 13 Nov 2024 11:03:34 +0100 Subject: [PATCH] Remove curly brackets from interface name (#126) The powershell commands places curly brackets around the name of the interfaces, this causes an apply on the resource windowsfirewall with the parameter disabled_interface_aliases every run. This will fix it. --- lib/puppet/provider/windowsfirewall/powershell.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/provider/windowsfirewall/powershell.rb b/lib/puppet/provider/windowsfirewall/powershell.rb index a427e21..29f26a0 100644 --- a/lib/puppet/provider/windowsfirewall/powershell.rb +++ b/lib/puppet/provider/windowsfirewall/powershell.rb @@ -92,7 +92,7 @@ def self.get_firewall_properties(zone) property_name = method_map.key(key.strip) next if property_name.nil? - hash_of_properties[property_name.intern] = val.strip.chomp + hash_of_properties[property_name.intern] = val.strip.chomp.delete('{|}') end hash_of_properties[:name] = zone hash_of_properties[:ensure] = hash_of_properties[:ensure] == 'True' ? :present : :absent