Fix log message formatting that cause log errors
Log messages take *args for the format replacements instead of a tuple. This fixes the 2 that were using tuples. Closes-Bug: #1513302 Change-Id: Idb3927427684d8a2e053543f76a5085a15753007
This commit is contained in:
parent
3906b9f394
commit
1b20470263
octavia/controller/worker/tasks
@ -71,7 +71,7 @@ class ComputeCreate(BaseComputeTask):
|
||||
config_drive_files=config_drive_files)
|
||||
|
||||
LOG.debug("Server created with id: %s for amphora id: %s",
|
||||
(compute_id, amphora_id))
|
||||
compute_id, amphora_id)
|
||||
return compute_id
|
||||
|
||||
except Exception:
|
||||
|
@ -336,7 +336,7 @@ class MarkAmphoraBootingInDB(BaseDatabaseTask):
|
||||
"""Mark amphora booting in DB."""
|
||||
|
||||
LOG.debug("Mark BOOTING in DB for amphora: %s with compute id %s",
|
||||
(amphora_id, compute_id))
|
||||
amphora_id, compute_id)
|
||||
self.amphora_repo.update(db_apis.get_session(), amphora_id,
|
||||
status=constants.AMPHORA_BOOTING,
|
||||
compute_id=compute_id)
|
||||
@ -560,7 +560,7 @@ class MarkLBAndListenerActiveInDB(BaseDatabaseTask):
|
||||
"""Mark the load balancer and listener as active in DB."""
|
||||
|
||||
LOG.debug("Mark ACTIVE in DB for load balancer id: %s "
|
||||
"and listener id: %s", (loadbalancer.id, listener.id))
|
||||
"and listener id: %s", loadbalancer.id, listener.id)
|
||||
self.loadbalancer_repo.update(db_apis.get_session(),
|
||||
loadbalancer.id,
|
||||
provisioning_status=constants.ACTIVE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user