From 182e322e46eca863dcd098630f7afc183249197e Mon Sep 17 00:00:00 2001 From: Joey Wildman Date: Sat, 13 Jan 2024 22:10:46 +0900 Subject: [PATCH] Fix prealloc 500 error by making prealloc in tangoREST.py async (#243) fix prealloc 500 error by making prealloc in tangoREST.py async --- restful_tango/tangoREST.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restful_tango/tangoREST.py b/restful_tango/tangoREST.py index 4031e839..31b66b41 100644 --- a/restful_tango/tangoREST.py +++ b/restful_tango/tangoREST.py @@ -416,7 +416,7 @@ def pool(self, key, image): self.log.info("Key not recognized: %s" % key) return self.status.wrong_key - def prealloc(self, key, image, num, vmStr): + async def prealloc(self, key, image, num, vmStr): """prealloc - Create a pool of num instances spawned from image""" self.log.debug("Received prealloc request(%s, %s, %s)" % (key, image, num)) if self.validateKey(key):