win_firewall_rule: Remove invalid 'bypass' action (2.7 backport) (#50222)

* win_firewall_rule: Remove invalid 'bypass' action

This fixes #50143

* Add changelog fragment
This commit is contained in:
Dag Wieers 2019-01-07 19:46:56 +01:00 committed by Toshio Kuratomi
parent 27eb7b97a1
commit 05322334b0
3 changed files with 5 additions and 2 deletions

View file

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

View file

@ -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"

View file

@ -44,7 +44,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.