[libvirt-users] Ruby libvirt gem: state reasons

Mohammed Naser mnaser at vexxhost.com
Thu Nov 17 22:15:08 UTC 2011


Sent from my iPhone

On 2011-11-17, at 5:07 PM, Ken Coar <kcoar at redhat.com> wrote:

> Does anyone know of a way to use the Ruby bindings to find out
> the 'reason' value for the state of the VM?  Such as obtaining
> VIR_DOMAIN_RUNNING_BOOTED for a running domain?

Don't have the API on hand but you can compare them by referencing the constants

Libvirt::Domain::RUNNING or so

> --
> #ken    B-)}
>
> Ken Coar, Sanagendamgagwedweinini
> IT Engineering Tower, Red Hat/RDU
>
> "Millennium hand and shrimp!"
>
> _______________________________________________
> libvirt-users mailing list
> libvirt-users at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users




More information about the libvirt-users mailing list