From c77ab67274600aff72b0d10eebcd5b7b8c32b0c5 Mon Sep 17 00:00:00 2001 From: Devin Christensen Date: Tue, 25 Nov 2014 11:46:41 -0700 Subject: [PATCH] Fix user_add in postgresql_user --- database/postgresql/postgresql_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/postgresql/postgresql_user.py b/database/postgresql/postgresql_user.py index 7839669cb1a..d7cca2fcd68 100644 --- a/database/postgresql/postgresql_user.py +++ b/database/postgresql/postgresql_user.py @@ -191,7 +191,7 @@ def user_add(cursor, user, password, role_attr_flags, encrypted, expires): query.append("PASSWORD %(password)s") if expires is not None: query.append("VALID UNTIL %(expires)s") - query = query.append(role_attr_flags) + query.append(role_attr_flags) query = ' '.join(query) cursor.execute(query, query_password_data) return True