Merge pull request #30125 from abednarik/update_user_home

Update user home event when createhome is set to False
This commit is contained in:
Mike Place 2016-01-05 11:15:38 -07:00
commit 9363d6f5b6

View file

@ -117,7 +117,7 @@ def _changes(name,
if _group_changes(lusr['groups'], wanted_groups, remove_groups):
change['groups'] = wanted_groups
if home:
if lusr['home'] != home and createhome:
if lusr['home'] != home:
change['home'] = home
if createhome:
newhome = home if home else lusr['home']