Skip to content

Commit

Permalink
Fix expires
Browse files Browse the repository at this point in the history
  • Loading branch information
rgbkrk committed Feb 24, 2014
1 parent be0be16 commit b5eb4d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/database/postgresql_user
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b5eb4d2

Please sign in to comment.