chef-boneyard / windows_firewall

Chef cookbook to configure Windows Firewall
Apache License 2.0
6 stars 9 forks source link

Fully support multi-port local_port and remote_port #36

Closed tas50 closed 5 years ago

tas50 commented 5 years ago

Powershell returns an array if there's more than one port. Allow Array and properly sort the arrays. Also work around a bug where an array in PS gets turned into a Hash with the count and value keys with ConvertTo-Json. I linked to the stackoverflow that discussed the issue within the code so the reason isn't lost on future readers.

Signed-off-by: Tim Smith tsmith@chef.io