Wrong substitution of replica ID in log message

Its noted that we are using wrong value for substitution
of share replica ID in delete share replica api code.

For that, Wrong id is logged in manila-api logs.
Corrected it.

Change-Id: I6049692d9ea4570704bdb3e4171d50c95515ac7d
Closes-Bug: #1665635
This commit is contained in:
nidhimittalhada 2017-06-19 10:47:55 +05:30
parent acecb8b5b9
commit ef8bb2e149
1 changed files with 1 additions and 1 deletions

View File

@ -524,7 +524,7 @@ class API(base.Base):
msg = _("Cannot delete last active replica.")
raise exception.ReplicationException(reason=msg)
LOG.info("Deleting replica %s.", id)
LOG.info("Deleting replica %s.", share_replica['id'])
self.db.share_replica_update(
context, share_replica['id'],