Skip to content

Commit

Permalink
Tests: ipa: Minor fix while add users in groups in windows bash shell…
Browse files Browse the repository at this point in the history
… script.

Signed-off-by: Madhuri Upadhye <[email protected]>

Reviewed-by: Shridhar Gadekar <[email protected]>
  • Loading branch information
madhuriupadhye authored and pbrezina committed Mar 31, 2022
1 parent 22bbb7a commit 6d10598
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/multihost/ipa/add-groups.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ foreach ($group in $groups) {
try
{
Write-Output "Adding $($user.SamAccountName) as member to $($group.GroupName)"
Add-ADGroupMember -Identity $group.GroupName -Member $user.SamAccountName
Add-ADGroupMember -Identity $group.GroupName -Members $user.SamAccountName
}
catch [System.Object]
{
Expand All @@ -58,7 +58,7 @@ foreach ($nestedgroup in $nestedgroups) {
try
{
Write-Output "Add $($group.GroupName) as member of $($nestedgroup.NestedGroupName)"
Add-ADGroupMember -Identity $nestedgroup.NestedGroupName -Member $group.GroupName
Add-ADGroupMember -Identity $nestedgroup.NestedGroupName -Members $group.GroupName
}
catch [System.Object]
{
Expand Down

0 comments on commit 6d10598

Please sign in to comment.