Skip to content

Commit

Permalink
Improve task name
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannik committed Aug 5, 2024
1 parent 505c098 commit 16d4f46
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugins/module_utils/_ADObject.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ Function ConvertTo-AnsibleADDistinguishedName {
[string]
$Server,

[boolean]
[Switch]
$NestedGroupFlatten,

[PSCredential]
Expand Down Expand Up @@ -617,7 +617,7 @@ Function ConvertTo-AnsibleADDistinguishedName {
$object = Get-AnsibleADObject @getParams
if ($object) {
if ($NestedGroupFlatten -and $object.ObjectClass -eq "group") {
$dns = Get-ADGroupMember $object -Recursive | Select-Object -ExpandProperty DistinguishedName
$dns = Get-ADGroupMember @getParams -Recursive $object | Select-Object -ExpandProperty DistinguishedName
}
else {
$dns = $object | Select-Object -ExpandProperty DistinguishedName
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/group.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ DOCUMENTATION:
- Flattens nested groups.
type: bool
default: false
version_added: 1.7.0
sam_account_name:
description:
- The C(sAMAccountName) value to set for the group.
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/targets/group/tasks/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@
- my_user_2
register: sub_group

- name: set members while flattening sub group
- name: set members with sub group flattening
group:
name: MyGroup
flatten: true
Expand Down

0 comments on commit 16d4f46

Please sign in to comment.