HE> The association provider was registered for each subclass with a
HE> different name. That caused duplicated instances as the same
HE> provider gets called twice, but has no chance to figure out for
HE> which registration.
It does, actually, if you use ASSOC_MATCH(). That was the little hack
we used to prevent duplicate entries while enumerating a CIM_Foo class
while we were not using connect_by_classname(). However, I think that
using the classname connection to prevent duplicates is better. Some
care may be required in associations that do not have to connect to
libvirt.
HE> This patch set tries to fix it. Please review. Thanks.
I tested EAFP and it works for me. I'll move on to test the rest, but
feedback from others would be good.
Thanks!
--
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms(a)us.ibm.com