Quit virsh immediately if connection open fails, rather than giving a...

Quit virsh immediately if connection open fails, rather than giving a non-functional interactive shell
上级 cfb62c9d
无相关合并请求
Wed Dec 5 11:24:00 EST 2007 Daniel P. Berrange <berrange@redhat.com>
* src/virsh.c: quit if initial conection attempt fails
Wed Dec 5 10:29:00 EST 2007 Daniel P. Berrange <berrange@redhat.com>
* qemud/Makefile.am: Fix VPATH build for remote_generate_stubs.pl
......
......@@ -4529,8 +4529,10 @@ vshInit(vshControl * ctl)
* vshConnectionUsability, except ones which don't need a connection
* such as "help".
*/
if (!ctl->conn)
if (!ctl->conn) {
vshError(ctl, FALSE, _("failed to connect to the hypervisor"));
return FALSE;
}
return TRUE;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部