mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
esx: Dump the raw response in case of an SOAP fault
Currently only the faultcode and faultstring are deserialized, the detail part is ignored. The implementation of many new SOAP types would be necessary to deserialize the detail part correctly. As an intermediate solution the raw response is dumped to the debug log.
This commit is contained in:
parent
75b7f400f9
commit
7003390791
@ -692,6 +692,12 @@ esxVI_Context_Execute(virConnectPtr conn, esxVI_Context *ctx,
|
||||
"HTTP response code %d for call to '%s'. "
|
||||
"Fault: %s - %s", (*response)->responseCode,
|
||||
methodName, fault->faultcode, fault->faultstring);
|
||||
|
||||
/* FIXME: Dump raw response until detail part gets deserialized */
|
||||
VIR_DEBUG("HTTP response code %d for call to '%s' [[[[%s]]]]",
|
||||
(*response)->responseCode, methodName,
|
||||
(*response)->content);
|
||||
|
||||
goto failure;
|
||||
} else {
|
||||
if (virAsprintf(&xpathExpression,
|
||||
|
Loading…
x
Reference in New Issue
Block a user