From: Loic Baron Date: Mon, 29 Dec 2014 09:53:03 +0000 (+0100) Subject: Merge branch 'onelab' of ssh://git.onelab.eu/git/myslice into onelab X-Git-Tag: myslice-1.2~1^2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=7464fb5c0d4d4857963b52b944b27df41e4ec1f6;hp=d559cf89ba2946f22bba8a681ed60ffb66e32cf1;p=myslice.git Merge branch 'onelab' of ssh://git.onelab.eu/git/myslice into onelab Conflicts: rest/credentials.py --- diff --git a/rest/monitor.py b/rest/monitor.py index 4372a354..77295495 100644 --- a/rest/monitor.py +++ b/rest/monitor.py @@ -7,7 +7,7 @@ import ConfigParser def servicesStatus(request): Config = ConfigParser.ConfigParser() - Config.read(os.getcwd() + "/myslice/monitor.ini") + Config.read(os.getcwd() + "/myslice/myslice/monitor.ini") result = {} @@ -16,15 +16,15 @@ def servicesStatus(request): cert = os.path.abspath(Config.get('monitor', 'cert')) if not os.path.isfile(cert) : - return HttpResponse(json.dumps({'error' : '-1'}), content_type="application/json") + return HttpResponse(json.dumps({'error' : '-2'}), content_type="application/json") if not Config.has_option('monitor', 'pkey') : - return HttpResponse(json.dumps({'error' : '-2'}), content_type="application/json") + return HttpResponse(json.dumps({'error' : '-3'}), content_type="application/json") pkey = os.path.abspath(Config.get('monitor', 'pkey')) if not os.path.isfile(pkey) : - return HttpResponse(json.dumps({'error' : '-2'}), content_type="application/json") + return HttpResponse(json.dumps({'error' : '-4'}), content_type="application/json") services = Config.sections() for s in services :