Skip to content

Commit 09a16b7

Browse files
committed
Remove the accolade around interfacename (#126)
The powershell commands places an accolade 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.
1 parent 359e430 commit 09a16b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/provider/windowsfirewall/powershell.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def self.get_firewall_properties(zone)
9292
property_name = method_map.key(key.strip)
9393
next if property_name.nil?
9494

95-
hash_of_properties[property_name.intern] = val.strip.chomp
95+
hash_of_properties[property_name.intern] = val.strip.chomp.delete('{|}')
9696
end
9797
hash_of_properties[:name] = zone
9898
hash_of_properties[:ensure] = hash_of_properties[:ensure] == 'True' ? :present : :absent

0 commit comments

Comments
 (0)