[libvirt] [PATCH 6/7] virsh-network: Adapt to new error reporting

Michal Privoznik mprivozn at redhat.com
Wed Apr 2 12:43:59 UTC 2014


Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 tools/virsh-network.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/tools/virsh-network.c b/tools/virsh-network.c
index 4b0df62..3d202ce 100644
--- a/tools/virsh-network.c
+++ b/tools/virsh-network.c
@@ -943,10 +943,8 @@ cmdNetworkUpdate(vshControl *ctl, const vshCmd *cmd)
         goto cleanup;
     }
 
-    if (vshCommandOptInt(cmd, "parent-index", &parentIndex) < 0) {
-        vshError(ctl, "%s", _("malformed parent-index argument"));
+    if (vshCommandOptInt(cmd, "parent-index", &parentIndex) < 0)
         goto cleanup;
-    }
 
     /* The goal is to have a full xml element in the "xml"
      * string. This is provided in the --xml option, either directly
-- 
1.9.0




More information about the libvir-list mailing list