mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
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:
parent
edbbb3aa12
commit
16b8942966
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user