Commit 462713da authored by Nicolas Wavrant's avatar Nicolas Wavrant

fixup! runner: /slapgridResult is a GET

parent 15e568f5
...@@ -531,7 +531,7 @@ def slapgridResult(): ...@@ -531,7 +531,7 @@ def slapgridResult():
'position': 0, 'position': 0,
'truncated': False 'truncated': False
} }
if request.form['log'] in ['software', 'instance']: if request.form.get('log') in ['software', 'instance']:
log_file = request.form['log'] + "_log" log_file = request.form['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:
......
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