Code formatting.
This commit is contained in:
parent
ca7e18bb29
commit
fd39f54df7
2 changed files with 2 additions and 6 deletions
1
NEWS
1
NEWS
|
@ -1,4 +1,5 @@
|
||||||
1.7.5.dev0
|
1.7.5.dev0
|
||||||
|
* #311: Override PostgreSQL dump/restore commands via configuration options.
|
||||||
* #604: Fix traceback when a configuration section is present but lacking any options.
|
* #604: Fix traceback when a configuration section is present but lacking any options.
|
||||||
* #607: Clarify examples in include merging and deep merging documentation.
|
* #607: Clarify examples in include merging and deep merging documentation.
|
||||||
* #611: Fix "data" consistency check to support "check_last" and consistency "prefix" options.
|
* #611: Fix "data" consistency check to support "check_last" and consistency "prefix" options.
|
||||||
|
|
|
@ -59,12 +59,7 @@ def dump_databases(databases, log_prefix, location_config, dry_run):
|
||||||
default_dump_command = 'pg_dumpall' if all_databases else 'pg_dump'
|
default_dump_command = 'pg_dumpall' if all_databases else 'pg_dump'
|
||||||
dump_command = database.get('pg_dump_command') or default_dump_command
|
dump_command = database.get('pg_dump_command') or default_dump_command
|
||||||
command = (
|
command = (
|
||||||
(
|
(dump_command, '--no-password', '--clean', '--if-exists',)
|
||||||
dump_command,
|
|
||||||
'--no-password',
|
|
||||||
'--clean',
|
|
||||||
'--if-exists',
|
|
||||||
)
|
|
||||||
+ (('--host', database['hostname']) if 'hostname' in database else ())
|
+ (('--host', database['hostname']) if 'hostname' in database else ())
|
||||||
+ (('--port', str(database['port'])) if 'port' in database else ())
|
+ (('--port', str(database['port'])) if 'port' in database else ())
|
||||||
+ (('--username', database['username']) if 'username' in database else ())
|
+ (('--username', database['username']) if 'username' in database else ())
|
||||||
|
|
Loading…
Reference in a new issue