Merge "Add err_msg param to baremetal_deploy_helper."

This commit is contained in:
Jenkins 2013-06-20 20:44:20 +00:00 committed by Gerrit Code Review
commit 6326ee60b1

View File

@ -280,10 +280,14 @@ class BareMetalDeploy(object):
port = q.get('p', '3260')
iqn = q['n']
lun = q.get('l', '1')
err_msg = q.get('e')
except KeyError as e:
start_response('400 Bad Request', [('Content-type', 'text/plain')])
return "parameter '%s' is not defined" % e
if err_msg:
LOG.error(_('Deploy agent error message: %s'), err_msg)
context = ironic_context.get_admin_context()
d = db.bm_node_get(context, node_id)