[PATCH] tools: fix the output of blockjob

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There will be no output when use blockjob with "--raw" option if guest
has no block job. A explicit message should be given just like
with "--info"

Signed-off-by: Shanzhi Yu <shyu@xxxxxxxxxx>
---
 tools/virsh-domain.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index 14e1e35..7094a43 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -2541,7 +2541,6 @@ cmdBlockJob(vshControl *ctl, const vshCmd *cmd)
     }
 
     if (rc == 0) {
-        if (!raw)
             vshPrint(ctl, _("No current block job for %s"), path);
         ret = true;
         goto cleanup;
-- 
2.1.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]