mirror of https://gitee.com/openkylin/libvirt.git
esx: Fix deserialization for VI API calls CancelTask and UnregisterVM
This commit is contained in:
parent
d9734072ff
commit
79f9419652
|
@ -601,7 +601,7 @@ esxVI_CancelTask(virConnectPtr conn, esxVI_Context *ctx,
|
|||
|
||||
request = virBufferContentAndReset(&buffer);
|
||||
|
||||
if (esxVI_Context_Execute(conn, ctx, "UnregisterVM", request, &response,
|
||||
if (esxVI_Context_Execute(conn, ctx, "CancelTask", request, &response,
|
||||
esxVI_Occurrence_None) < 0) {
|
||||
goto failure;
|
||||
}
|
||||
|
@ -652,7 +652,7 @@ esxVI_UnregisterVM(virConnectPtr conn, esxVI_Context *ctx,
|
|||
|
||||
request = virBufferContentAndReset(&buffer);
|
||||
|
||||
if (esxVI_Context_Execute(conn, ctx, "AnswerVM", request, &response,
|
||||
if (esxVI_Context_Execute(conn, ctx, "UnregisterVM", request, &response,
|
||||
esxVI_Occurrence_None) < 0) {
|
||||
goto failure;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue