Merge "Add err_msg param to baremetal_deploy_helper."
This commit is contained in:
commit
6326ee60b1
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user