]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
undefine command can't take an ID
authorDaniel Veillard <veillard@redhat.com>
Thu, 17 Jul 2008 11:49:15 +0000 (11:49 +0000)
committerDaniel Veillard <veillard@redhat.com>
Thu, 17 Jul 2008 11:49:15 +0000 (11:49 +0000)
* src/virsh.c: patch from Evgeniy Sokolov for the undefine command
  which can't take an id
Daniel

ChangeLog
src/virsh.c

index 734a721cf650f901dd98974f8bbb0bcb99102dde..fcc2c89f2addecfb0919950cb5dc12ae8767ca47 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Jul 17 13:47:56 CEST 2008 Daniel Veillard <veillard@redhat.com>
+
+       * 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 <veillard@redhat.com>
 
        * src/libvirt.c src/openvz_driver.c: fix the description of the ID 
index 4e91bebcac54d8d2e505a24daba9c2d350698e77..f1296ec5dfeefc5b9fa1378bc1ec2214f824a63a 100644 (file)
@@ -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) {