Commit ceb93d0c authored by Nicolas Wavrant's avatar Nicolas Wavrant

fixup! runner: /slapgridResult is a GET

parent a591c3f3
...@@ -507,11 +507,11 @@ def slapgridResult(): ...@@ -507,11 +507,11 @@ def slapgridResult():
'position': 0, 'position': 0,
'truncated': False 'truncated': False
} }
if request.form.get('log') in ['software', 'instance']: if request.args.get('log') in ['software', 'instance']:
log_file = request.form['log'] + "_log" log_file = request.args['log'] + "_log"
if os.path.exists(app.config[log_file]): if os.path.exists(app.config[log_file]):
with open(app.config[log_file], 'rb') as f: with open(app.config[log_file], 'rb') as f:
log_result = bytes2str(readFileFrom(f, int(request.form['position']))) log_result = bytes2str(readFileFrom(f, int(request.args['position'])))
build_result = getSlapgridResult(app.config, 'software') build_result = getSlapgridResult(app.config, 'software')
run_result = getSlapgridResult(app.config, 'instance') run_result = getSlapgridResult(app.config, 'instance')
software_info = {'state':software_state, software_info = {'state':software_state,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment