Skip to content

Commit

Permalink
Fix prealloc 500 error by making prealloc in tangoREST.py async (#243)
Browse files Browse the repository at this point in the history
fix prealloc 500 error by making prealloc in tangoREST.py async
  • Loading branch information
20wildmanj authored Jan 13, 2024
1 parent 8348ab5 commit 182e322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion restful_tango/tangoREST.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 182e322

Please sign in to comment.