The tilde expansion doesn't work with user.home

reviewable/pr18780/r1
Mischa ter Smitten 9 years ago
parent 291fef3b34
commit 0ca732baaf

@ -271,6 +271,9 @@ class User(object):
self.update_password = module.params['update_password']
self.expires = None
if module.params['home'] is not None:
self.home = os.path.expanduser(module.params['home'])
if module.params['expires']:
try:
self.expires = time.gmtime(module.params['expires'])

Loading…
Cancel
Save