From 16b89429669793ffec848b049cbdc8fa19be8e70 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 17 Jul 2008 11:49:15 +0000 Subject: [PATCH] undefine command can't take an ID * src/virsh.c: patch from Evgeniy Sokolov for the undefine command which can't take an id Daniel --- ChangeLog | 5 +++++ src/virsh.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 734a721cf6..fcc2c89f2a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jul 17 13:47:56 CEST 2008 Daniel Veillard + + * src/virsh.c: patch from Evgeniy Sokolov for the undefine command + which can't take an id + Wed Jul 16 22:36:43 CEST 2008 Daniel Veillard * src/libvirt.c src/openvz_driver.c: fix the description of the ID diff --git a/src/virsh.c b/src/virsh.c index 4e91bebcac..f1296ec5df 100644 --- a/src/virsh.c +++ b/src/virsh.c @@ -978,7 +978,8 @@ cmdUndefine(vshControl * ctl, vshCmd * cmd) if (!vshConnectionUsability(ctl, ctl->conn, TRUE)) return FALSE; - if (!(dom = vshCommandOptDomain(ctl, cmd, "domain", &name))) + if (!(dom = vshCommandOptDomainBy(ctl, cmd, "domain", &name, + VSH_BYNAME|VSH_BYUUID))) return FALSE; if (virDomainUndefine(dom) == 0) {