mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-12 20:00:58 +00:00
Fixed expiredate parameter in user module
Changed "--expiredate" to "-e", as on older systems "--expiredate" is not present.
This commit is contained in:
@@ -402,7 +402,7 @@ class User(object):
|
||||
cmd.append(self.shell)
|
||||
|
||||
if self.expires:
|
||||
cmd.append('--expiredate')
|
||||
cmd.append('-e')
|
||||
cmd.append(time.strftime(self.DATE_FORMAT, self.expires))
|
||||
|
||||
if self.password is not None:
|
||||
@@ -515,7 +515,7 @@ class User(object):
|
||||
cmd.append(self.shell)
|
||||
|
||||
if self.expires:
|
||||
cmd.append('--expiredate')
|
||||
cmd.append('-e')
|
||||
cmd.append(time.strftime(self.DATE_FORMAT, self.expires))
|
||||
|
||||
if self.update_password == 'always' and self.password is not None and info[1] != self.password:
|
||||
|
||||
Reference in New Issue
Block a user