提交 976eb124 编写于 作者: J Jiri Denemark

virsh: Allow starting domains by UUID

上级 abfa97a2
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册