diff --git a/src/conf/node_device_conf.c b/src/conf/node_device_conf.c index 548bbffef6..4803e2a256 100644 --- a/src/conf/node_device_conf.c +++ b/src/conf/node_device_conf.c @@ -1277,7 +1277,7 @@ virNodeDeviceGetWWNs(virNodeDeviceDefPtr def, } if (cap == NULL) { - virNodeDeviceReportError(VIR_ERR_NO_SUPPORT, + virNodeDeviceReportError(VIR_ERR_OPERATION_INVALID, "%s", _("Device is not a fibre channel HBA")); ret = -1; } else if (*wwnn == NULL || *wwpn == NULL) {