[Kimchi-devel] [PATCH 1/2] Add persistent flag to VM info
Crístian Viana
vianac at linux.vnet.ibm.com
Thu Aug 21 20:06:14 UTC 2014
On 21-08-2014 16:32, Christy Perez wrote:
> Just to follow up here, changing it did result in '1' being output
> instead of 'true.' Since everything else uses 'true' or 'false', I'm
> going to leave this as-is.
>
> Here's a snip with just the result from dom.isPersistent():
> {
> "users":[],
>
> "screenshot":"/data/screenshots/79b8fe8b-4697-445c-aee5-3a781f27b61d-f113f739-0249-4913-afdd-5d7e662660f1.png",
> "cpus":1,
> "persistent":1,
> "groups":[],
> "graphics":{
> "type":"vnc",
> "port":5900,
> "listen":"0.0.0.0"
> },
You're right, it seems that this method doesn't return boolean natively,
it returns int
(http://libvirt.org/html/libvirt-libvirt.html#virDomainIsPersistent). I
thought it returned boolean (it's an "isXXX" method...), so we could
just use its return value.
More information about the Kimchi-devel
mailing list