Correct incorrect i18n of some messages

Several LOG messages were found to be incorrectly i18n'ed.
This change fixes them

Change-Id: I6e7e2e3f202392dd30417a9070745e70d4819f36
Closes-Bug: 1618858
Depends-On: I924cfd1ca93bef7f3dc79149519df10305390779
This commit is contained in:
nbziouech
2016-08-31 14:25:37 +02:00
committed by amrith
parent 4512aec2d4
commit b7ba1b43d9
4 changed files with 4 additions and 4 deletions
@@ -196,7 +196,7 @@ class VerticaClusterTasks(task_models.ClusterTasks):
db_instance.id)
if self.get_ip(master_instance) in remove_member_ips:
raise RuntimeError(_("Cannot remove master instance!"))
LOG.debug(_("Marking cluster k-safety: %s") % k)
LOG.debug("Marking cluster k-safety: %s" % k)
self.get_guest(master_instance).mark_design_ksafe(k)
self.get_guest(master_instance).shrink_cluster(
remove_member_ips)
@@ -198,7 +198,7 @@ class PgSqlConfig(PgSqlProcess):
if self.configuration_manager.has_system_override(BACKUP_CFG_OVERRIDE):
return
LOG.info("Applying changes to WAL config for use by base backups")
LOG.info(_("Applying changes to WAL config for use by base backups"))
wal_arch_loc = CONF.postgresql.wal_archive_location
if not os.path.isdir(wal_arch_loc):
raise RuntimeError(_("Cannot enable backup as WAL dir '%s' does "
@@ -171,7 +171,7 @@ class PgBaseBackupIncremental(PgBaseBackup):
metadata = self.storage.load_metadata(location, checksum)
if 'parent_location' in metadata:
LOG.info("Found parent at %s", metadata['parent_location'])
LOG.info(_("Found parent at %s"), metadata['parent_location'])
parent_location = metadata['parent_location']
parent_checksum = metadata['parent_checksum']
self._incremental_restore(parent_location, parent_checksum)
+1 -1
View File
@@ -139,7 +139,7 @@ class Module(object):
description, tenant_id, datastore,
datastore_version, auto_apply, visible, live_update):
if module_type.lower() not in Modules.VALID_MODULE_TYPES:
LOG.error("Valid module types: %s" % Modules.VALID_MODULE_TYPES)
LOG.error(_("Valid module types: %s") % Modules.VALID_MODULE_TYPES)
raise exception.ModuleTypeNotFound(module_type=module_type)
Module.validate_action(
context, 'create', tenant_id, auto_apply, visible)