prevent usless assignment of home

This commit is contained in:
Brian Coca 2015-07-18 23:28:41 -04:00
parent 045b8e8cff
commit 718fd1f891

View file

@ -253,7 +253,6 @@ class User(object):
self.group = module.params['group']
self.groups = module.params['groups']
self.comment = module.params['comment']
self.home = module.params['home']
self.shell = module.params['shell']
self.password = module.params['password']
self.force = module.params['force']
@ -269,6 +268,7 @@ class User(object):
self.ssh_comment = module.params['ssh_key_comment']
self.ssh_passphrase = module.params['ssh_key_passphrase']
self.update_password = module.params['update_password']
self.home = None
self.expires = None
if module.params['home'] is not None: