Fix wrong message of pxe validator

pxe validator display wrong message, the parameters name should start
with "pxe_", else we will define wrong parameters

Change-Id: Ia2a5a001cfe01c7ef16c6d787a2d85341d718dd2
Closes-Bug: #1266143
This commit is contained in:
Haomeng, Wang 2014-01-05 10:43:05 +08:00
parent 5f20fd64eb
commit 57f5e284b0
1 changed files with 2 additions and 2 deletions

View File

@ -112,10 +112,10 @@ def _parse_driver_info(node):
missing_info = []
for label in d_info:
if not d_info[label]:
missing_info.append(label)
missing_info.append("pxe_%s" % label)
if missing_info:
raise exception.InvalidParameterValue(_(
"Can not validate PXE bootloader. The following paramenters "
"Can not validate PXE bootloader. The following parameters "
"were not passed to ironic: %s") % missing_info)
# Internal use only