Revision 58a59652 lib/backend.py
b/lib/backend.py | ||
---|---|---|
506 | 506 |
val = "Error while checking hypervisor: %s" % str(err) |
507 | 507 |
tmp[hv_name] = val |
508 | 508 |
|
509 |
if constants.NV_HVPARAMS in what and vm_capable: |
|
510 |
result[constants.NV_HVPARAMS] = tmp = [] |
|
511 |
for source, hv_name, hvparms in what[constants.NV_HVPARAMS]: |
|
512 |
try: |
|
513 |
logging.info("Validating hv %s, %s", hv_name, hvparms) |
|
514 |
hypervisor.GetHypervisor(hv_name).ValidateParameters(hvparms) |
|
515 |
except errors.HypervisorError, err: |
|
516 |
tmp.append((source, hv_name, str(err))) |
|
517 |
|
|
509 | 518 |
if constants.NV_FILELIST in what: |
510 | 519 |
result[constants.NV_FILELIST] = utils.FingerprintFiles( |
511 | 520 |
what[constants.NV_FILELIST]) |
Also available in: Unified diff