getActiveDomains() return ids not names
Closed this issue · 3 comments
drscream commented
Hello,
i would like to inform you that getActiveDomains() return a list of ids not names. The function getDefinedDomains() return the name. Example:
hypervisor.getActiveDomains(): 4
hypervisor.getDefinedDomains(): example
It would be nice if you could have a look at it.
Thanks and best regards,
Thomas
c4milo commented
I'll look into it as soon as I have some spare time. Any patches are welcome btw :)
drscream commented
Thanks for your reply.
After looking into the code and the documentation of libVirt i've found out that it isn't a bug :-) So it's "normal" that the active / running Domains returns an ID and the defined / inactive returns an char array [1].
Thanks for all your work.
[1] http://libvirt.org/guide/html/Application_Development_Guide-Guest_Domains-Listing.html
c4milo commented
Ok, I'll close this issue as invalid then.