mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-20 11:48:28 -06:00
Display autostart status in virsh dominfo command.
* src/virsh.c: Display autostart status in virsh dominfo command (Shigeki Sakamoto).
This commit is contained in:
parent
e083fc786c
commit
5c9454aa6e
@ -1,3 +1,9 @@
|
||||
Tue May 27 10:40:00 BST 2008 Richard W.M. Jones <rjones@redhat.com>
|
||||
|
||||
Display autostart status in virsh dominfo command.
|
||||
* src/virsh.c: Display autostart status in virsh dominfo
|
||||
command (Shigeki Sakamoto).
|
||||
|
||||
Tue May 27 09:54:00 BST 2008 Richard W.M. Jones <rjones@redhat.com>
|
||||
|
||||
Fix use of header files in disk storage backend.
|
||||
|
@ -1492,7 +1492,7 @@ cmdDominfo(vshControl * ctl, vshCmd * cmd)
|
||||
{
|
||||
virDomainInfo info;
|
||||
virDomainPtr dom;
|
||||
int ret = TRUE;
|
||||
int ret = TRUE, autostart;
|
||||
unsigned int id;
|
||||
char *str, uuid[VIR_UUID_STRING_BUFLEN];
|
||||
|
||||
@ -1545,6 +1545,11 @@ cmdDominfo(vshControl * ctl, vshCmd * cmd)
|
||||
ret = FALSE;
|
||||
}
|
||||
|
||||
if (!virDomainGetAutostart(dom, &autostart)) {
|
||||
vshPrint(ctl, "%-15s %-15s\n", _("Autostart:"),
|
||||
autostart ? _("enable") : _("disable") );
|
||||
}
|
||||
|
||||
virDomainFree(dom);
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user