Merge pull request #1373 from bcoca/win_firewall_rule_misargs

fix error with misArg not being declared
This commit is contained in:
Brian Coca 2015-12-16 08:07:44 -05:00
commit f6220ed424

View file

@ -205,6 +205,7 @@ $direction=Get-Attr $params "direction" "";
$force=Get-Attr $params "force" $false;
$action=Get-Attr $params "action" "";
$misArg = ''
# Check the arguments
if ($enable -ne $null) {
if ($enable -eq $true) {
@ -262,7 +263,7 @@ foreach ($arg in $args){
$winprofile=Get-Attr $params "profile" "current";
$fwsettings.Add("profile", $winprofile)
if ($($($misArg|measure).count) -gt 0){
if ($misArg){
$result=New-Object psobject @{
changed=$false
failed=$true