diff --git a/system/user.py b/system/user.py index 7c3fa4c8594..33a3ba24d37 100644 --- a/system/user.py +++ b/system/user.py @@ -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'])