mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
run user.chhome once to avoid any side-effect when run it twice
This commit is contained in:
parent
19de9954ee
commit
7fe7b089fd
1 changed files with 2 additions and 1 deletions
|
@ -380,7 +380,8 @@ def present(name,
|
|||
if key == 'date':
|
||||
__salt__['shadow.set_date'](name, date)
|
||||
continue
|
||||
if key == 'home':
|
||||
# run chhome once to avoid any possible bad side-effect
|
||||
if key == 'home' and 'homeDoesNotExist' not in changes:
|
||||
__salt__['user.chhome'](name, val, False)
|
||||
continue
|
||||
if key == 'homeDoesNotExist':
|
||||
|
|
Loading…
Add table
Reference in a new issue