From 8aa14ac4aa3a1c477e4acfe50448e1865e66f2b1 Mon Sep 17 00:00:00 2001 From: Timothy Vandenbrande Date: Thu, 2 Jul 2015 09:19:08 +0200 Subject: [PATCH] renamed profile var --- lib/ansible/modules/extras/windows/win_firewall_rule.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/extras/windows/win_firewall_rule.ps1 b/lib/ansible/modules/extras/windows/win_firewall_rule.ps1 index 832d68d8f9..d19082e669 100644 --- a/lib/ansible/modules/extras/windows/win_firewall_rule.ps1 +++ b/lib/ansible/modules/extras/windows/win_firewall_rule.ps1 @@ -225,13 +225,13 @@ foreach ($arg in $args){ }; }; -$profile=Get-Attr $params "profile" "current"; -if (($profile -ne 'current') -or ($profile -ne 'domain') -or ($profile -ne 'standard') -or ($profile -ne 'all') ) { +$winprofile=Get-Attr $params "profile" "current"; +if (($winprofile -ne 'current') -or ($winprofile -ne 'domain') -or ($winprofile -ne 'standard') -or ($winprofile -ne 'all') ) { $misArg+="Profile"; $msg+=@("for the Profile parameter only the values 'current', 'domain', 'standard' or 'all' are allowed"); } else { - $fwsettings.Add("profile", $profile) + $fwsettings.Add("profile", $winprofile) } if ($($($misArg|measure).count) -gt 0){