Skip to content

Commit b6ea031

Browse files
(MODULES-10798) Ensure group is created for user only if undefined
1 parent 1f9a8f2 commit b6ea031

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)