]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Revert "virsh: Use old API if remote libvirtd does not support new"
authorEric Blake <eblake@redhat.com>
Wed, 14 Sep 2011 18:47:07 +0000 (12:47 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 16 Sep 2011 14:20:32 +0000 (08:20 -0600)
This reverts commit 799912fa05b8c3aa37bd04c57b196755f3f70552; now
that the rpc regression is fixed, virsh no longer needs the special
case here.

tools/virsh.c

index fdb503a915131d77ca5a4d2b929d50a85b852fbc..d5fcd2cdc66f3a85535ad3c56c01b7a52cb574ad 100644 (file)
@@ -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 {