mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
virsh: Allow starting domains by UUID
This commit is contained in:
parent
abfa97a225
commit
976eb124e7
@ -164,7 +164,7 @@ start() {
|
||||
if $guest_running; then
|
||||
gettext "already active"; echo
|
||||
else
|
||||
retval run_virsh $uri start "$name" >/dev/null && \
|
||||
retval run_virsh $uri start "$guest" >/dev/null && \
|
||||
gettext "done"; echo
|
||||
fi
|
||||
fi
|
||||
|
@ -1402,7 +1402,8 @@ cmdStart(vshControl *ctl, const vshCmd *cmd)
|
||||
if (!vshConnectionUsability(ctl, ctl->conn))
|
||||
return FALSE;
|
||||
|
||||
if (!(dom = vshCommandOptDomainBy(ctl, cmd, NULL, VSH_BYNAME)))
|
||||
if (!(dom = vshCommandOptDomainBy(ctl, cmd, NULL,
|
||||
VSH_BYNAME | VSH_BYUUID)))
|
||||
return FALSE;
|
||||
|
||||
if (virDomainGetID(dom) != (unsigned int)-1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user