Update user home event when createhome is set to False

Removed cretehome from if statement since home should be updated even when createhome is set
to False.

Fixes #29633.
This commit is contained in:
abednarik 2016-01-02 18:18:16 -03:00
parent 28b1bbbe77
commit 56544a77f6

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']