1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #6157 from rgbkrk/patch-1

Fix expires
This commit is contained in:
Michael DeHaan 2014-02-24 19:17:17 -05:00
commit 031aaa1018

View file

@ -176,7 +176,7 @@ def user_add(cursor, user, password, role_attr_flags, encrypted, expires):
query = query + " PASSWORD %(password)s"
query_password_data.update(password=password)
if expires is not None:
query = query + " VALID UNTIL '%(expires)s'" % { "exipres": expires }
query = query + " VALID UNTIL '%(expires)s'" % { "expires": expires }
query = query + " " + role_attr_flags
cursor.execute(query, query_password_data)
return True