The tilde expansion doesn't work with user.home

This commit is contained in:
Mischa ter Smitten 2015-07-15 12:00:23 +02:00 committed by Matt Clay
parent e04a4a4114
commit 10cae0acb3

View file

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