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
This commit is contained in:
Daniel Veillard 2008-07-17 11:49:15 +00:00
parent edbbb3aa12
commit 16b8942966
2 changed files with 7 additions and 1 deletions

View File

@ -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

View 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) {