remove username argument of pgsqltasks.tasks.delete_pgsql_database

This commit is contained in:
Jan Dittberner 2015-01-09 19:37:12 +01:00
parent 706a4ef177
commit 1af553c1fa

View file

@ -59,13 +59,11 @@ def create_pgsql_database(dbname, username):
@shared_task
def delete_pgsql_database(dbname, username):
def delete_pgsql_database(dbname):
"""
This task deletes an existing PostgreSQL database and revokes privileges of
the given user on that database.
This task deletes an existing PostgreSQL database.
:param str dbname: database name
:param str username: the user name of an existing PostgreSQL user
:return: True if the database has been deleted, False otherwise
:rtype: boolean