From a9613def96d346a3078ef44e81a93827cfbfba9f Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Fri, 25 Sep 2009 18:15:05 +0100 Subject: [PATCH] ConfdFilterCallback: fix a bug in expire The HandleExpire function takes the whole "up" structure, and not just the salt. Signed-off-by: Guido Trotter <ultrotter@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- lib/confd/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/confd/client.py b/lib/confd/client.py index 803fbb5ab..ee5b41aee 100644 --- a/lib/confd/client.py +++ b/lib/confd/client.py @@ -335,8 +335,8 @@ class ConfdFilterCallback: def _HandleExpire(self, up): # if we have no answer we have received none, before the expiration. - if salt in self._answers: - del self._answers[salt] + if up.salt in self._answers: + del self._answers[up.salt] def _HandleReply(self, up): """Handle a single confd reply, and decide whether to filter it. -- GitLab