From 550cc7f5080bf09c5a7617504d617e6ed8601db8 Mon Sep 17 00:00:00 2001 From: grossmj Date: Tue, 24 Feb 2015 21:02:37 -0700 Subject: [PATCH] Rename vms_lock to vm_locks. --- gns3server/web/route.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gns3server/web/route.py b/gns3server/web/route.py index bdc4c62e..8afaae20 100644 --- a/gns3server/web/route.py +++ b/gns3server/web/route.py @@ -63,7 +63,7 @@ class Route(object): _routes = [] _documentation = {} - _vms_lock = {} + _vm_locks = {} @classmethod def get(cls, path, *args, **kw): @@ -163,8 +163,8 @@ class Route(object): vm_id = request.match_info.get("vm_id") if vm_id is None: vm_id = request.match_info["device_id"] - cls._vms_lock.setdefault(vm_id, asyncio.Lock()) - with (yield from cls._vms_lock[vm_id]): + cls._vm_locks.setdefault(vm_id, asyncio.Lock()) + with (yield from cls._vm_locks[vm_id]): response = yield from control_schema(request) else: response = yield from control_schema(request)