Fix missing value types for log message

This patch add missing value types for some log message of exception.

Change-Id: Ib4a1dea4cbfead8367884d9e6c34cb9b3f0a8d6a
Closes-Bug: #1494574
Co-Authored-By: Morgan Jones <morgan@parelastic.com>
This commit is contained in:
Sergey Vilgelm 2015-09-14 10:55:27 +03:00 committed by amrith
parent 17ac1d0a17
commit 667dc5f50c
2 changed files with 3 additions and 3 deletions

View File

@ -238,7 +238,7 @@ class CannotResizeToSameSize(TroveError):
class VolumeAttachmentsNotFound(NotFound):
message = _("Cannot find the volumes attached to compute "
"instance %(server_id).")
"instance %(server_id)s.")
class VolumeCreationFailure(TroveError):

View File

@ -38,7 +38,7 @@ class MysqlBinlogReplication(mysql_base.MysqlReplicationBase):
class UnableToDetermineBinlogPosition(exception.TroveError):
message = _("Unable to determine binlog position "
"(from file %(binlog_file)).")
"(from file %(binlog_file)s).")
def connect_to_master(self, service, snapshot):
logging_config = snapshot['log_position']
@ -78,4 +78,4 @@ class MysqlBinlogReplication(mysql_base.MysqlReplicationBase):
except (IOError, IndexError) as ex:
LOG.exception(ex)
raise self.UnableToDetermineBinlogPosition(
{'info_file': INFO_FILE})
{'binlog_file': INFO_FILE})