From ef8bb2e1499140225875a8d78cde5e5358d35f9c Mon Sep 17 00:00:00 2001 From: nidhimittalhada Date: Mon, 19 Jun 2017 10:47:55 +0530 Subject: [PATCH] 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 --- manila/share/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manila/share/api.py b/manila/share/api.py index 839752a0a7..4ad8c977c3 100644 --- a/manila/share/api.py +++ b/manila/share/api.py @@ -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'],