Skip to content

Commit 33ae18c

Browse files
Merge pull request #334 from michaeltlombardi/ticket/main/MODULES-10798
(MODULES-10798) Ensure group is created for user only if undefined
2 parents 1f9a8f2 + b6ea031 commit 33ae18c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/user.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@
271271
}
272272
} else {
273273
# Check if user wants to create the group
274-
if $create_group {
274+
if $create_group and ! defined(Group[$group]) {
275275
Group[$group] -> User[$name]
276276
ensure_resource(
277277
'group',

0 commit comments

Comments
 (0)