Skip to content

Commit

Permalink
Remove the accolade around interfacename (#126)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ralfbosz committed Nov 13, 2024
1 parent 359e430 commit 09a16b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/windowsfirewall/powershell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09a16b7

Please sign in to comment.