mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-16 18:25:12 -06:00
Fix passing of --globals-only to global backups.
This commit is contained in:
parent
ff87cf5544
commit
d68c967423
@ -330,13 +330,13 @@ def create_backup_job(sid):
|
||||
args.append('--verbose')
|
||||
if 'dqoute' in data and data['dqoute']:
|
||||
args.append('--quote-all-identifiers')
|
||||
if data['type'] == 'global':
|
||||
if data['type'] == 'globals':
|
||||
args.append('--globals-only')
|
||||
|
||||
try:
|
||||
p = BatchProcess(
|
||||
desc=BackupMessage(
|
||||
BACKUP.SERVER if data['type'] != 'global' else BACKUP.GLOBALS,
|
||||
BACKUP.SERVER if data['type'] != 'globals' else BACKUP.GLOBALS,
|
||||
sid,
|
||||
data['file'].encode('utf-8') if hasattr(
|
||||
data['file'], 'encode'
|
||||
|
@ -395,7 +395,7 @@ class BackupCreateJobTest(BaseTestGenerator):
|
||||
type='globals'
|
||||
),
|
||||
url='/backup/job/{0}',
|
||||
expected_cmd_opts=['--verbose'],
|
||||
expected_cmd_opts=['--globals-only'],
|
||||
not_expected_cmd_opts=[],
|
||||
expected_exit_code=[0, None]
|
||||
))
|
||||
|
Loading…
Reference in New Issue
Block a user