File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,9 @@ fn update_users_and_groups(
98
98
) {
99
99
for group_config in & config. groups {
100
100
if let Some ( existing_entry) = group_db. get_mut ( & group_config. name ) {
101
- existing_entry. update ( group_config. members . clone ( ) ) ;
101
+ let mut members = group_config. members . clone ( ) ;
102
+ members. dedup ( ) ;
103
+ existing_entry. update ( members) ;
102
104
} else if let Err ( e) = create_group ( group_config, group_db) {
103
105
log:: error!( "Failed to create group {}: {e:#}" , group_config. name) ;
104
106
} ;
@@ -401,7 +403,7 @@ mod tests {
401
403
402
404
#[ test]
403
405
fn update_users_and_groups_across_generations ( ) -> Result < ( ) > {
404
- // Explitly set this because the expected values depend on this.
406
+ // Explicitly set this because the expected values depend on this.
405
407
std:: env:: set_var ( "USERBORN_NO_LOGIN_PATH" , NO_LOGIN_FALLBACK ) ;
406
408
407
409
let mut group_db = Group :: default ( ) ;
You can’t perform that action at this time.
0 commit comments