Merge pull request #4745 from achillesrasquinha/cmd-restore-fix

[Minor] Print Error Fix during Backup Restore.
This commit is contained in:
Prateeksha Singh 2018-01-02 21:53:18 +05:30 committed by GitHub
commit ba9f53bcce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,7 +101,7 @@ def restore(context, sql_file_path, mariadb_root_username=None, mariadb_root_pas
if not os.path.exists(sql_file_path):
sql_file_path = '../' + sql_file_path
if not os.path.exists(sql_file_path):
print('Invalid path {0}' + sql_file_path[3:])
print('Invalid path {0}'.format(sql_file_path[3:]))
sys.exit(1)
if sql_file_path.endswith('sql.gz'):