Skip to content
Snippets Groups Projects
Commit acfded75 authored by Chris Hines's avatar Chris Hines
Browse files

wrong value in formating an error message

parent 7143d98b
No related branches found
No related tags found
2 merge requests!11Dev,!6Dev
Pipeline #7126 passed
......@@ -225,7 +225,7 @@ class JobStat(Resource):
logger.error(e)
flask_restful.abort(400, message="Identity error {}".format(e))
except SshCtrlException as e:
flask_restful.abort(400,message="We're having difficultly contacting {}. Could there be an outage in effect?".format(params['identity']['site']['host']))
flask_restful.abort(400,message="We're having difficultly contacting {}. Could there be an outage in effect?".format(host))
if not (res['stderr'] == '' or res['stderr'] is None or res['stderr'] == b''):
logger.error(res['stderr'])
flask_restful.abort(400, message=res['stderr'].decode())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment