From c7fb582b9c1b0f3bd4bd976dfbff7c30faf690fb Mon Sep 17 00:00:00 2001 From: Timothy Vandenbrande Date: Tue, 30 Jun 2015 08:49:47 +0200 Subject: [PATCH] windows default to current instead of all --- lib/ansible/modules/extras/windows/win_firewall_rule.ps1 | 2 +- lib/ansible/modules/extras/windows/win_firewall_rule.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/windows/win_firewall_rule.ps1 b/lib/ansible/modules/extras/windows/win_firewall_rule.ps1 index fcdf34799fc..832d68d8f9c 100644 --- a/lib/ansible/modules/extras/windows/win_firewall_rule.ps1 +++ b/lib/ansible/modules/extras/windows/win_firewall_rule.ps1 @@ -225,7 +225,7 @@ foreach ($arg in $args){ }; }; -$profile=Get-Attr $params "profile" "all"; +$profile=Get-Attr $params "profile" "current"; if (($profile -ne 'current') -or ($profile -ne 'domain') -or ($profile -ne 'standard') -or ($profile -ne 'all') ) { $misArg+="Profile"; $msg+=@("for the Profile parameter only the values 'current', 'domain', 'standard' or 'all' are allowed"); diff --git a/lib/ansible/modules/extras/windows/win_firewall_rule.py b/lib/ansible/modules/extras/windows/win_firewall_rule.py index 59e1918ff58..cb167d0f4fa 100644 --- a/lib/ansible/modules/extras/windows/win_firewall_rule.py +++ b/lib/ansible/modules/extras/windows/win_firewall_rule.py @@ -91,7 +91,7 @@ options: profile: describtion: - the profile this rule applies to - default: all + default: current choices: ['current', 'domain', 'standard', 'all'] force: description: