mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
virsh: Use old API if remote libvirtd does not support new
Commit ffe28ab74b
introduced regression
while communicating with older libvirtd command 'domblkstat' used the new
API and did not check for VIR_ERR_RPC error code signalling the remote
server does not support this API and did not fall back to older API.
Thereafter 'domblkstat' ended with "error: unknown procedure: 243".
This commit is contained in:
parent
011eeb4130
commit
799912fa05
@ -1090,7 +1090,8 @@ cmdDomblkstat (vshControl *ctl, const vshCmd *cmd)
|
||||
* then.
|
||||
*/
|
||||
if (rc < 0) {
|
||||
if (last_error->code != VIR_ERR_NO_SUPPORT) {
|
||||
if (last_error->code != VIR_ERR_NO_SUPPORT &&
|
||||
last_error->code != VIR_ERR_RPC) {
|
||||
virshReportError(ctl);
|
||||
goto cleanup;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user