1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

renamed profile var

This commit is contained in:
Timothy Vandenbrande 2015-07-02 09:19:08 +02:00 committed by Matt Clay
parent c7fb582b9c
commit 8aa14ac4aa

View file

@ -225,13 +225,13 @@ foreach ($arg in $args){
}; };
}; };
$profile=Get-Attr $params "profile" "current"; $winprofile=Get-Attr $params "profile" "current";
if (($profile -ne 'current') -or ($profile -ne 'domain') -or ($profile -ne 'standard') -or ($profile -ne 'all') ) { if (($winprofile -ne 'current') -or ($winprofile -ne 'domain') -or ($winprofile -ne 'standard') -or ($winprofile -ne 'all') ) {
$misArg+="Profile"; $misArg+="Profile";
$msg+=@("for the Profile parameter only the values 'current', 'domain', 'standard' or 'all' are allowed"); $msg+=@("for the Profile parameter only the values 'current', 'domain', 'standard' or 'all' are allowed");
} else { } else {
$fwsettings.Add("profile", $profile) $fwsettings.Add("profile", $winprofile)
} }
if ($($($misArg|measure).count) -gt 0){ if ($($($misArg|measure).count) -gt 0){