streamlined code in database.backup
Changes to be committed: modified: modules/database.py
This commit is contained in:
parent
b74a15c9cc
commit
441f8b4be6
1 changed files with 2 additions and 2 deletions
|
|
@ -289,7 +289,6 @@ def backup(dbuser='default', backup_file=None, branch=None,
|
|||
user=user,
|
||||
dumpfilename=dumpfilename
|
||||
)
|
||||
output = run_database_command(cmd_pg_dump, user, True)
|
||||
else:
|
||||
# this only spits output, it does not save a file
|
||||
|
||||
|
|
@ -300,7 +299,8 @@ def backup(dbuser='default', backup_file=None, branch=None,
|
|||
port=port,
|
||||
user=user,
|
||||
)
|
||||
output = run_database_command(cmd_pg_dump, user, True)
|
||||
|
||||
output = run_database_command(cmd_pg_dump, user, True)
|
||||
|
||||
return output
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue