[Backup] Checking for 'only_data' parameter before accessing it.

Reported by Neel Patel
This commit is contained in:
Ashesh Vashi 2016-05-24 12:02:46 +05:30
parent 98fa93413d
commit 0840e6af2d

View File

@ -400,7 +400,7 @@ def create_backup_objects_job(sid):
elif data['format'] == 'plain':
args.extend(['--format', 'plain'])
if data['only_data']:
if 'only_data' in data and data['only_data']:
args.append('--data-only')
set_param('disable_trigger', '--disable-triggers')
else: