Skip to content

Commit

Permalink
win_firewall_rule: Remove invalid 'bypass' action
Browse files Browse the repository at this point in the history
This fixes ansible#50143
  • Loading branch information
dagwieers committed Dec 21, 2018
1 parent 14b03ac commit fc3cb96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ansible/modules/windows/win_firewall_rule.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/modules/windows/win_firewall_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
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.
Expand Down

0 comments on commit fc3cb96

Please sign in to comment.