提交 c73708ea 编写于 作者: D Daniel Veillard

* src/virsh.c: fixed a bad messaging mechanism preventing localization

  and raised by Thomas Canniot
Daniel
上级 42ee7111
Fri Apr 13 10:00:04 CEST 2007 Daniel Veillard <veillard@redhat.com>
* src/virsh.c: fixed a bad messaging mechanism preventing localization
and raised by Thomas Canniot
Thu Apr 12 19:51:00 EST 2007 Daniel Berrange <berrange@redhat.com> Thu Apr 12 19:51:00 EST 2007 Daniel Berrange <berrange@redhat.com>
* src/xen_internal.c: Updated structs to work with new Xen 3.0.5 * src/xen_internal.c: Updated structs to work with new Xen 3.0.5
......
...@@ -327,14 +327,20 @@ cmdAutostart(vshControl * ctl, vshCmd * cmd) ...@@ -327,14 +327,20 @@ cmdAutostart(vshControl * ctl, vshCmd * cmd)
autostart = !vshCommandOptBool(cmd, "disable"); autostart = !vshCommandOptBool(cmd, "disable");
if (virDomainSetAutostart(dom, autostart) < 0) { if (virDomainSetAutostart(dom, autostart) < 0) {
vshError(ctl, FALSE, _("Failed to %smark domain %s as autostarted"), if (autostart)
autostart ? "" : "un", name); vshError(ctl, FALSE, _("Failed to mark domain %s as autostarted"),
name);
else
vshError(ctl, FALSE, _("Failed to unmark domain %s as autostarted"),
name);
virDomainFree(dom); virDomainFree(dom);
return FALSE; return FALSE;
} }
vshPrint(ctl, _("Domain %s %smarked as autostarted\n"), if (autostart)
name, autostart ? "" : "un"); vshPrint(ctl, _("Domain %s marked as autostarted\n"), name);
else
vshPrint(ctl, _("Domain %s unmarked as autostarted\n"), name);
return TRUE; return TRUE;
} }
...@@ -1754,14 +1760,20 @@ cmdNetworkAutostart(vshControl * ctl, vshCmd * cmd) ...@@ -1754,14 +1760,20 @@ cmdNetworkAutostart(vshControl * ctl, vshCmd * cmd)
autostart = !vshCommandOptBool(cmd, "disable"); autostart = !vshCommandOptBool(cmd, "disable");
if (virNetworkSetAutostart(network, autostart) < 0) { if (virNetworkSetAutostart(network, autostart) < 0) {
vshError(ctl, FALSE, _("Failed to %smark network %s as autostarted"), if (autostart)
autostart ? "" : "un", name); vshError(ctl, FALSE, _("failed to mark network %s as autostarted"),
name);
else
vshError(ctl, FALSE,_("failed to unmark network %s as autostarted"),
name);
virNetworkFree(network); virNetworkFree(network);
return FALSE; return FALSE;
} }
vshPrint(ctl, _("Network %s %smarked as autostarted\n"), if (autostart)
name, autostart ? "" : "un"); vshPrint(ctl, _("Network %s marked as autostarted\n"), name);
else
vshPrint(ctl, _("Network %s unmarked as autostarted\n"), name);
return TRUE; return TRUE;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册