Project

General

Profile

0001-views-make-deployment-synchronous-with-the-deploymen.patch

Benjamin Dauvergne, 05 November 2013 11:04 AM

Download (1.09 KB)

View differences:

Subject: [PATCH] views: make deployment synchronous with the deployment
 request

With this commit errors during deployment will be properly logged by
Django.

fixes #3940
 wcsinst/wcsinstd/views.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
wcsinst/wcsinstd/views.py
15 15
def create(request):
16 16
    data = json.loads(request.body)
17 17
    deploy = DeployInstance(**data)
18
    threading.Thread(target=deploy.make).start()
18
    deploy.make()
19 19
    return {}
20 20

  
21 21

  
......
28 28
    if data.get('domain') != instance:
29 29
        raise Exception('domain mismatch') # -> should remove/add ?
30 30
    deploy = DeployInstance(**data)
31
    threading.Thread(target=deploy.make).start()
31
    deploy.make()
32 32
    return {}
33
-