Merge "Add i18n translation to guestagent 5/5"

This commit is contained in:
Jenkins 2017-01-15 00:48:35 +00:00 committed by Gerrit Code Review
commit 523efe2314
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ class PgBaseBackup(base.RestoreRunner):
def pre_restore(self):
self.app.stop_db()
LOG.info("Preparing WAL archive dir")
LOG.info(_("Preparing WAL archive dir"))
self.app.recreate_wal_archive_dir()
datadir = self.app.pgsql_data_dir
operating_system.remove(datadir, force=True, recursive=True,

View File

@ -173,7 +173,7 @@ class MySQLRestoreMixin(object):
try:
operating_system.remove(file_path, force=True, as_root=True)
except Exception:
LOG.exception("Could not remove file: '%s'" % file_path)
LOG.exception(_("Could not remove file: '%s'") % file_path)
@classmethod
def _is_non_zero_file(self, fp):