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:
parent
17ac1d0a17
commit
667dc5f50c
|
@ -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):
|
||||
|
|
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue