Add i18n translation to guestagent datastore 1/5

This is patch 1 of 5 that add i18n translation to the
guestagent/datastore directory

Custom hacking rules will be added later to enforce the style .

Change-Id: Ic8664bf105d601909c6efa5cf73db6c27adaf42e
Depends-On: I6fb2bdcc4b83457e08b24599fb4a297ef6ec6c14
This commit is contained in:
Trevor McCasland 2016-12-05 08:13:36 -06:00 committed by amrith
parent 4f9c538f68
commit 7df52d105e
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ class CouchbaseApp(object):
LOG.info(_('Couchbase Server initial setup finished.'))
except exception.ProcessExecutionError:
LOG.exception(_('Error performing initial Couchbase setup.'))
raise RuntimeError("Couchbase Server initial setup failed")
raise RuntimeError(_("Couchbase Server initial setup failed"))
def _install_couchbase(self, packages):
"""
@ -130,7 +130,7 @@ class CouchbaseApp(object):
if self.status.is_running:
LOG.error(_("Cannot start Couchbase with configuration changes. "
"Couchbase state == %s.") % self.status)
raise RuntimeError("Couchbase is not stopped.")
raise RuntimeError(_("Couchbase is not stopped."))
self._write_config(config_contents)
self.start_db(True)