Skip to content

Commit

Permalink
This commit deletes curly brackets from output
Browse files Browse the repository at this point in the history
The command Get-NetFirewallProfile shows the
variable DisabledInterfaceAliases with curly
brackets, causing every run to change this
parameter. Delete all curly brackets from
value to solve this.
  • Loading branch information
ralfbosz committed Dec 13, 2022
1 parent 9e435d9 commit 8f56700
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 8f56700

Please sign in to comment.