win_firewall_rule: Remove invalid 'bypass' action (#50207)

* win_firewall_rule: Remove invalid 'bypass' action

This fixes #50143

* Add changelog fragment
pull/50230/head
Dag Wieers 6 years ago committed by Jordan Borean
parent 50ed152ab9
commit 0fe7d569c9

@ -0,0 +1,3 @@
---
bugfixes:
- win_firewall_rule - Remove invalid 'bypass' action

@ -169,7 +169,7 @@ $diff_support = Get-AnsibleParam -obj $params -name "_ansible_diff" -type "bool"
$name = Get-AnsibleParam -obj $params -name "name" -failifempty $true
$description = Get-AnsibleParam -obj $params -name "description" -type "str"
$direction = Get-AnsibleParam -obj $params -name "direction" -type "str" -failifempty $true -validateset "in","out"
$action = Get-AnsibleParam -obj $params -name "action" -type "str" -failifempty $true -validateset "allow","block","bypass"
$action = Get-AnsibleParam -obj $params -name "action" -type "str" -failifempty $true -validateset "allow","block"
$program = Get-AnsibleParam -obj $params -name "program" -type "str"
$service = Get-AnsibleParam -obj $params -name "service" -type "str"
$enabled = Get-AnsibleParam -obj $params -name "enabled" -type "bool" -default $true -aliases "enable"

@ -41,7 +41,7 @@ options:
description:
- What to do with the items this rule is for.
required: yes
choices: [ allow, block, bypass ]
choices: [ allow, block ]
description:
description:
- Description for the firewall rule.

Loading…
Cancel
Save