mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-23 03:42:19 +00:00
ch: report response message instead of just code
The response message from CH for vm.add-net api will be more helpful in debugging. Hence, log the message instead of just response code. Signed-off-by: Purna Pavan Chandra <paekkaladevi@linux.microsoft.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
14ca8ef256
commit
fa66343ef9
@ -665,7 +665,7 @@ chProcessAddNetworkDevices(virCHDriver *driver,
|
|||||||
}
|
}
|
||||||
if (http_res != 204 && http_res != 200) {
|
if (http_res != 204 && http_res != 200) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("Unexpected response from CH: %1$d"), http_res);
|
_("Unexpected response from CH: %1$s"), response);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user