Merge pull request #1733 from tersmitten/the-tilde-expansion-doesnt-work-with-userhome

The tilde expansion doesn't work with user.home
This commit is contained in:
Brian Coca 2015-07-18 23:26:20 -04:00
commit 045b8e8cff

View file

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