Fix passing of --globals-only to global backups.

This commit is contained in:
Akshay Joshi 2018-08-16 14:20:32 +01:00 committed by Dave Page
parent ff87cf5544
commit d68c967423
2 changed files with 3 additions and 3 deletions

View File

@ -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'

View File

@ -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]
))