From: Eric Blake Date: Wed, 14 Sep 2011 18:47:07 +0000 (-0600) Subject: Revert "virsh: Use old API if remote libvirtd does not support new" X-Git-Tag: v0.9.5-rc3~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9f55e4688286951d77bdc1f26a99911908ac782;p=thirdparty%2Flibvirt.git Revert "virsh: Use old API if remote libvirtd does not support new" This reverts commit 799912fa05b8c3aa37bd04c57b196755f3f70552; now that the rpc regression is fixed, virsh no longer needs the special case here. --- diff --git a/tools/virsh.c b/tools/virsh.c index fdb503a915..d5fcd2cdc6 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -1090,8 +1090,7 @@ cmdDomblkstat (vshControl *ctl, const vshCmd *cmd) * then. */ if (rc < 0) { - if (last_error->code != VIR_ERR_NO_SUPPORT && - last_error->code != VIR_ERR_RPC) { + if (last_error->code != VIR_ERR_NO_SUPPORT) { virshReportError(ctl); goto cleanup; } else {