From a7359d915896a9be2fe9b4adac08265e64f1c236 Mon Sep 17 00:00:00 2001
From: David Knowles <dknowles@google.com>
Date: Wed, 10 Nov 2010 15:57:19 -0500
Subject: [PATCH] TempReservationManager: Reserved() doesn't work

Note: It appears this has been around since the initial checkin of
TemporaryReservationManager. I have no idea what this could break, so
someone else may want to test this more thoroughly.

Signed-off-by: David Knowles <dknowles@google.com>
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
---
 lib/config.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/config.py b/lib/config.py
index c5d1a6ab0..c72ca6227 100644
--- a/lib/config.py
+++ b/lib/config.py
@@ -81,7 +81,7 @@ class TemporaryReservationManager:
     self._ec_reserved = {}
 
   def Reserved(self, resource):
-    for holder_reserved in self._ec_reserved.items():
+    for holder_reserved in self._ec_reserved.values():
       if resource in holder_reserved:
         return True
     return False
-- 
GitLab